Plane–sphere intersection

From Wikipedia, the free encyclopedia

The three possible plane-sphere intersections: 1. No intersection. 2. Point intersection. 3. Circle intersection.
Enlarge
The three possible plane-sphere intersections:
1. No intersection.
2. Point intersection.
3. Circle intersection.

In analytic geometry, the intersection of a plane and a sphere can be the empty set, a point, or a circle. Distinguishing these cases, and determining equations for the point and circle in the latter cases have use, for example, when calculating ray intersections in ray tracing.

To distinguish the cases, let us parametrize the plane as

ax + by + cz + d = 0

and the sphere as

(xx0)2 + (yy0)2 + (zz0)2R2 = 0

In other words, c = (x0,y0,z0) is the center of the sphere and R>0 is its radius. Let D be the shortest distance from c to the plane, whence (see Plane)

D = \frac{\left | a x_0 + b y_0 + c z_0+d \right |}{\sqrt{a^2+b^2+c^2}}.

This gives three cases:

  1. If D>R, the plane does not intersect the sphere.
  2. If D=R, the plane intersects the sphere at exactly one point.
  3. If D<R, the plane intersects the sphere on a circle.

To characterize the circle formed by the intersection when DR, let the center of the sphere be the origin (mathematics) of an XY plane P=(x,y,0). In this case D=0 and the sphere and the circle have the same radius and center, making the circle a great circle on the sphere.

Increasing D moves the plane perpendicular to some radius of the sphere, Rs. This also decreases the radius of the circle,Rc. Let the motion be in the negative Z direction. Let Rd be the displacement along Rs.

This places the center of the circle, Oc at (0,0,-Rd). The radius of the circle, Rc in terms of Rd is R_c = \sqrt {R_s^2  - R_d ^2 }.

When D=R this places Oc at (0,0,-R), which we know is a point since its radius is \lim_{R_d  \to R_s} \sqrt {R_s ^2  - R_d ^2}  = 0.

These results may be generalized to motion along any radius of the sphere via linear transformations.

[edit] See also