Interface Vec3

Vec3 is an interface for 3-element vector objects.

The primary use for a Vec3 object is in 3D geometry, as homogeneous coordinates in 2D geometry, or to represent e.g. RGB colours.

The module vec3 contains functions to manipulate objects conforming to this interface

Example usage:

import { Vec3 } from '@spissvinkel/maths';

Hierarchy

  • Vec3

Properties

x y z

Properties

x: number

The first element

y: number

The second element

z: number

The third element

Generated using TypeDoc