computeFirstIntersection

fun computeFirstIntersection(globe: Globe, ray: Line, transformedPoints: List<List<Vec3>>, eyePoint: Vec3): Position?

Computes intersections between a ray and transformed triangle points.

Parameters

globe
  • The globe to use for coordinate conversions

ray
  • The ray to test

transformedPoints
  • Array of transformed triangle points

eyePoint
  • The eye point for distance calculations