@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
13 lines • 716 B
TypeScript
/**
* NOTE: adapted from http://www.geometrictools.com/GTEngine/Include/Mathematics/GteIntrRay3Triangle3.h
* @source https://en.wikipedia.org/wiki/M%C3%B6ller%E2%80%93Trumbore_intersection_algorithm (Möller and Trumbore, « Fast, Minimum Storage Ray-Triangle Intersection », Journal of Graphics Tools, vol. 2, 1997, p. 21–28)
* @param {Vector3} result
* @param {Vector3} rayOrigin
* @param {Vector3} rayDirection
* @param {Vector3} a
* @param {Vector3} b
* @param {Vector3} c
* @returns {boolean}
*/
export function rayTriangleIntersection(result: Vector3, rayOrigin: Vector3, rayDirection: Vector3, a: Vector3, b: Vector3, c: Vector3): boolean;
//# sourceMappingURL=rayTriangleIntersection.d.ts.map