vec2 is a collection of functions to manipulate Vec2 two-element vector objects.
vec2
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';
vec2is a collection of functions to manipulateVec2two-element vector objects.The primary use for a
Vec2object is in 2D geometry.Example usage: