Interface Vec2

Vec2 is an interface for 2-element vector objects.

The primary use for a Vec2 object is in 2D geometry.

The module vec2 contains functions to manipulate objects conforming to this interface

Example usage:

import { Vec2 } from '@spissvinkel/maths';

Hierarchy

  • Vec2

Properties

x y

Properties

x: number

The first element

y: number

The second element

Generated using TypeDoc