vec3 is a collection of functions to manipulate Vec3 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.
Example usage:
import * as vec3 from '@spissvinkel/maths/vec3'; Copy
import * as vec3 from '@spissvinkel/maths/vec3';
Generated using TypeDoc
vec3
is a collection of functions to manipulate Vec3 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.
Example usage: