Vec3 is an interface for 3-element vector objects.
Vec3
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
vec3
Example usage:
import { Vec3 } from '@spissvinkel/maths'; Copy
import { Vec3 } from '@spissvinkel/maths';
The first element
The second element
The third element
Generated using TypeDoc
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 interfaceExample usage: