Skip to content

Documentation / @ripl/3d / RayTriangleHit

Interface: RayTriangleHit ​

Defined in: 3d/src/math/ray.ts:26

Where a Ray met a triangle, in both distance and barycentric terms.

Properties ​

PropertyTypeDescriptionDefined in
backFacingbooleanWhether the triangle was met from behind, relative to its counter-clockwise winding.3d/src/math/ray.ts:34
distancenumberDistance along the ray, in world units, at which the hit occurred.3d/src/math/ray.ts:28
weightBnumberBarycentric weight of the triangle's second vertex.3d/src/math/ray.ts:30
weightCnumberBarycentric weight of the triangle's third vertex.3d/src/math/ray.ts:32