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:

import * as vec4 from '@spissvinkel/maths/vec4';

Index

Functions

Generated using TypeDoc