vec4 is a collection of functions to manipulate Vec4 4-element vector objects.
vec4
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';
vec4is a collection of functions to manipulateVec44-element vector objects.The primary use for a
Vec4object is as homogeneous coordinates in 3D geometry, or to represent e.g. RGBA colours.Example usage: