<-Back

Function: Inter-Line-Sphere

INTER-LINE-SPHERE 3d point or nil

Returns one point of intersection between line described by point p-line and direction-vector u-line, and sphere described by center and radius. Iff the line and sphere do not intersect at all, NIL is returned.

arguments:
p-line 3D Point
Any point on the line
u-line 3D Vector
Direction of the line
center 3D Point
Center of the sphere
radius Number
The radius of the sphere
side-vector 3D Vector
Controls which of two possible intersection points is returned

<-Back