intersect

abstract fun intersect(ellipsoid: Ellipsoid, line: Line, result: Vec3): Boolean

Computes the first intersection of a specified globe and line. The line is interpreted as a ray; intersection points behind the line's origin are ignored.

Return

true if the ray intersects the globe, otherwise false

Parameters

ellipsoid

the ellipsoid this projection is applied to

line

the line to intersect with the globe

result

a pre-allocated Vec3 in which to return the computed point