Processing math: 100%

Sphere and Line Intersection Calculator

Points of Intersection

To find the points of intersection between a sphere and a line in 3D space, you can use the parametric equations of the line and substitute them into the equation of the sphere.
The general equation of a sphere is (xh)2+(yk)2+(zl)2=r2(I), and the parametric equations of a line are x=x0+at,y=y0+bt,andz=z0+ct(II).
The point(s) of intersection are found by solving the above system of equation as follows:
Substitute x,y,z in equaion (I) by their expressions in (II) to obtain the equation: (x0+ath)2+(y0+btk)2+(z0+ctl)2=r2 Expand the above equation to obtain a quadratic equation in one variable t, solve it to find t and substitute into equations (II) to find the point of intersection (x,y,z)

Use of Calculator


Result: