intersect

fun intersect(line: Line, result: Vec3): Boolean

Computes the first intersection of this globe with a specified 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

line

the line to intersect with this globe

result

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