Skip to content

Instantly share code, notes, and snippets.

@mendicantx
Created May 27, 2011 21:46
Show Gist options
  • Save mendicantx/996252 to your computer and use it in GitHub Desktop.
Save mendicantx/996252 to your computer and use it in GitHub Desktop.
Tell me I'm not crazy
Okay, given the image and assuming it's a sphere and given:
Image: http://imgur.com/Qmsp0
d1 = 6
r1 = 3
We know that Circumference is:
C1 = 2*3.14159*3 = 18.84954
So, given that and an angle theta = 40
We should get that r2 = cos(theta)*r1 = cos(40) * 3 = 2.29813
So now, since we have r2, we know that C2 = 2*3.14159*r2 = 2*3.14159*2.29813 = 14.4395
It seems like that should be right, shouldn't it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment