Skip to main content

rayTriangleIntersection

rayTriangleIntersection(result, rayOrigin, rayDirection, a, b, c) ⇒ boolean

NOTE: adapted from http://www.geometrictools.com/GTEngine/Include/Mathematics/GteIntrRay3Triangle3.h

Kind: global function
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)

ParamType
resultVector3
rayOriginVector3
rayDirectionVector3
aVector3
bVector3
cVector3