computeTriangleIntersection

fun computeTriangleIntersection(vertex0: Vec3, vertex1: Vec3, vertex2: Vec3, result: Vec3): Boolean

Computes the Cartesian intersection point of a specified line with a triangle. Taken from Moller and Trumbore.

Parameters

vertex0

The triangle's first vertex.

vertex1

The triangle's second vertex.

vertex2

The triangle's third vertex.

result

A pre-allocated Vec3 instance in which to return the computed point.

See also