Ray
A ray that emits from an origin in a certain direction. The class is used by Raycaster to assist with raycasting (e.g. mouse picking, finding which objects in 3D space the pointer is over).
The ray is mutable and not thread-safe; confine an instance (and any object graph holding it) to a single thread, exactly as in three.js.
The constructor stores the given vectors by reference (it does not copy them); sharing a vector with another object means later mutations are visible through every alias. Use set or clone when you need independent storage.
Constructors
Properties
Functions
Transforms this ray by the 4x4 matrix matrix4.
Returns the squared distance of closest approach between this ray and point.
Returns the distance from this ray's origin to plane, or null if the ray does not intersect the plane.
Returns the distance of closest approach between this ray and point.
Returns true if this ray intersects box.
Returns true if this ray intersects plane.
Returns true if this ray intersects sphere.