Intersection between a line and a sphere

前端 未结 8 2184
无人及你
无人及你 2021-02-09 05:51

I\'m trying to find the point of intersection between a sphere and a line but honestly, I don\'t have any idea of how to do so. Could anyone help me on this one ?

8条回答
  •  北海茫月
    2021-02-09 06:33

    Find the solution of the two equations in (x,y,z) describing the line and the sphere.

    There may be 0, 1 or 2 solutions.

    • 0 implies they don't intersect
    • 1 implies the line is a tangent to the sphere
    • 2 implies the line passes through the sphere.

提交回复
热议问题