Creates a new ray with the given values, or using default values if none are provided. The direction defaults to {x: 0, y: 0, z: -1} if undefined.
{x: 0, y: 0, z: -1}
The values of the ray.
A new ray.
Creates a new ray with the given values, or using default values if none are provided. The direction defaults to
{x: 0, y: 0, z: -1}if undefined.