Monday, 12 August 2013

geometry - finding the radius of a circle that intersects a sphere



I'm an openGL programmer, trying to construct a sphere in specific circumstances.




Imagine a sphere sliced up into numerous flat horizontal circles.



Given a position along the vertical (Y) axis of the sphere and the radius of the sphere, how do I get the radius of the circle that is on the (X,Z) plane that intersects the Y axis at that point?


Answer



A sphere of radius R is the solution set of x2+y2+z2=R2 in which x,y, and z all vary. A slice of the sphere perpendicular to the y-axis has the same equation except that y is a fixed number. So we have x2+z2=R2y2. With y fixed, this is the equation of a circle with radius R2y2.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...