Vec2 is an interface for 2-element vector objects.
Vec2
The primary use for a Vec2 object is in 2D geometry.
The module vec2 contains functions to manipulate objects conforming to this interface
vec2
Example usage:
import { Vec2 } from '@spissvinkel/maths'; Copy
import { Vec2 } from '@spissvinkel/maths';
The first element
The second element
Generated using TypeDoc
Vec2is an interface for 2-element vector objects.The primary use for a
Vec2object is in 2D geometry.The module
vec2contains functions to manipulate objects conforming to this interfaceExample usage: