A Vector3 is any object that has x, y and z properties. These can be Point instances, plain object literals or 3D vector classes from other third-party math libraries.

interface Vector3 {
    x: number;
    y: number;
    z: number;
}

Properties

x y z

Properties

x: number

The x coordinate of the 3D vector

y: number

The y coordinate of the 3D vector

z: number

The z coordinate of the 3D vector