The direction of the Ray. This must be normalized (with Vector3.normalize) for the methods to operate properly. Default is a Vector3 at (0, 0, -1).
Get the squared distance between this Ray and a line segment.
The start of the line segment.
The end of the line segment.
if this is provided, it receives the point on this Ray that is closest to the segment.
if this is provided, it receives the point on the line segment that is closest to this Ray.
Intersect this Ray with a triangle, returning the intersection point or null if there is no intersection.
The Vector3 points making up the triangle.
whether to use backface culling.
The result will be copied into this Vector3.
Generated using TypeDoc
A ray that emits from an origin in a certain direction. This is used by the Raycaster to assist with raycasting.e Raycasting is used for mouse picking (working out what objects in the 3D space the mouse is over) amongst other things. See the ngx3js docs page for details.