Value > Basic Data Values > Ray Values |
The Ray class defines the characteristics of a ray in 3D space.
A ray has two Point3 components, one defining a start position and the other a direction vector for the ray.
Returns a new ray with given position and direction vector.
Takes a scene object that has a target, such as a Tape Helper, a Target Camera or Target Light and returns a ray from the object to the target.
Returns undefined if the object has no target.
<ray>.pos: Float <ray>.position: Float --pos and position are synonyms <ray>.dir: Point3 --unit normalized direction vector
Operators
<ray> == <ray> <ray> != <ray>
NEWin 3ds Max 2018: Standard comparisons.
Creates a new copy of the ray value.
The new value contains a copy of the input ray value, and is independent of the input ray value.