Vec4 is an interface for 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.
The module vec4 contains functions to manipulate objects conforming to this interface
vec4
Example usage:
import { Vec4 } from '@spissvinkel/maths'; Copy
import { Vec4 } from '@spissvinkel/maths';
The first element
The second element
The third element
The fourth element
Generated using TypeDoc
Vec4
is an interface for 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.The module
vec4
contains functions to manipulate objects conforming to this interfaceExample usage: