Line–sphere intersection
Appearance

1. No intersection.
2. Point intersection.
3. Two point intersection.
In analytic geometry, a line and a sphere can intersect in three ways:
- No intersection at all
- Intersection in exactly one point
- Intersection in two points.
Methods for distinguishing these cases, and determining the coordinates for the points in the latter cases, are useful in a number of circumstances. For example, it is a common calculation to perform during ray tracing.[1]
wo points (case 3).
See also
- Intersection (geometry) § A line and a circle
- Analytic geometry
- Line–plane intersection
- Plane–plane intersection
- Plane–sphere intersection
References
- ^ Eberly, David H. (2006). 3D game engine design: a practical approach to real-time computer graphics, 2nd edition. Morgan Kaufmann. p. 698. ISBN 0-12-229063-1.