UNPKG

vector2d

Version:

2D Vector library offering Float32Array, Array or standard Object based vectors.

15 lines (14 loc) 350 B
import { AbstractVector } from "./AbstractVector"; /** * A vector representation that stores the axes in a Float32Array * * ``` * const v = new Vec2D.Float32Vector(2, 5) * ``` */ export declare class Float32Vector extends AbstractVector { protected axes: Float32Array; constructor(x: number, y: number); x: number; y: number; }