vec2 is a collection of functions to manipulate Vec2 two-element vector objects.
vec2
The primary use for a Vec2 object is in 2D geometry.
Example usage:
import * as vec2 from '@spissvinkel/maths/vec2'; Copy
import * as vec2 from '@spissvinkel/maths/vec2';
Generated using TypeDoc
vec2
is a collection of functions to manipulate Vec2 two-element vector objects.The primary use for a Vec2 object is in 2D geometry.
Example usage: