IntersectionTests

IntersectionTests

IntersectionTests

DOC_TBA

Methods

<static> grazingAltitudeLocation

Provides the point along the ray which is nearest to the ellipsoid.

Parameters:
Name Type Description
ray Ray The ray.
ellipsoid Ellipsoid The ellipsoid.
Throws:
Returns:
Cartesian The nearest planetodetic point on the ray.

<static> rayEllipsoid

Computes the intersection points of a ray with an ellipsoid.

Parameters:
Name Type Description
ray Ray The ray.
ellipsoid Ellipsoid The ellipsoid.
Throws:
Returns:
Array An array of one or two intersection scalars for points along the ray or undefined if there are no intersections.

<static> rayPlane

Computes the intersection of a ray and a plane.

Parameters:
Name Type Description
ray Ray The ray.
planeNormal Cartesian3 The plane normal.
planeD Number The distance from the plane to the origin.
Throws:
Returns:
Cartesian3 The intersection point or undefined if there is no intersections.