lineSegmentSphere

fun lineSegmentSphere(p0: Cartesian3, p1: Cartesian3, sphere: BoundingSphere, result: Interval? = definedExternally): Interval(source)

Computes the intersection points of a line segment with a sphere.

Return

The interval containing scalar points along the ray or undefined if there are no intersections.

Parameters

p0

An end point of the line segment.

p1

The other end point of the line segment.

sphere

The sphere.

result

The result onto which to store the result.

See also