Builds a ray starting at origin and pointing along direction; length limits how far it
reaches, and 0 or nothing leaves it unlimited.
The origin, the direction and the optional length
The ray
Builds a ray that starts at from, points toward to and is exactly as long as the distance
between them.
The start point and the end point
The ray
Reads the point a ray starts from, as a point in the scene.
The ray
The origin point
Reads the direction a ray points in, as a unit vector.
The ray
The direction vector
Reads how far a ray reaches; an unlimited ray reports a very large number.
The ray
The length
Rays: a start point and a direction, optionally with a length, used to pick what lies along a line of sight or to test intersections.
createPickingRaybuilds the ray from the camera through the pointer, the others build one from points.