Function 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.

Variant rayIntersectsTriangle (
  const(Vector3) from,
  const(Vector3) dir,
  const(Vector3) a,
  const(Vector3) b,
  const(Vector3) c
) nothrow @nogc;