GeometrySingleton.rayIntersectsTriangle

Tests if the 3d ray starting at from with the direction of dir intersects the triangle specified by a, b and c. If yes, returns the point of intersection as Vector3. If no intersection takes place, an empty Variant is returned.

struct GeometrySingleton
@nogc nothrow
Variant
rayIntersectsTriangle
(
in Vector3 from
,
in Vector3 dir
,
in Vector3 a
,
in Vector3 b
,
in Vector3 c
)

Meta