computeTriangleRayIntersection
computeTriangleRayIntersection(result, origin_x, origin_y, origin_z, direction_x, direction_y, direction_z, ax, ay, az, bx, by, bz, cx, cy, cz) ⇒ 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)
Param | Type |
---|---|
result | SurfacePoint3 |
origin_x | number |
origin_y | number |
origin_z | number |
direction_x | number |
direction_y | number |
direction_z | number |
ax | number |
ay | number |
az | number |
bx | number |
by | number |
bz | number |
cx | number |
cy | number |
cz | number |