vec4 is a collection of functions to manipulate Vec4 4-element vector objects.
vec4
The primary use for a Vec4 object is as homogeneous coordinates in 3D geometry, or to represent e.g. RGBA colours.
Example usage:
import * as vec4 from '@spissvinkel/maths/vec4'; Copy
import * as vec4 from '@spissvinkel/maths/vec4';
Generated using TypeDoc
vec4
is a collection of functions to manipulate Vec4 4-element vector objects.The primary use for a Vec4 object is as homogeneous coordinates in 3D geometry, or to represent e.g. RGBA colours.
Example usage: