A 3D Ray.

The 3D ray is a starting position and a direction.

The 3D ray is a 'half' ray in a sense it comes from the start position and goes through the direction.


Maths

interface Ray3 {
    direction: Vector3;
    origin: Vector3;
}

Properties

Properties

direction: Vector3

The direction of the ray.

origin: Vector3

The origin of the ray.