import { AbstractVector } from "./AbstractVector" ; /**
 * A vector representation that stores the axes in an Array
 *
 * ```
 * const v = new Vec2D.ArrayVector(2, 5)
 * ```
 */ export class ArrayVector extends AbstractVector { protected axes : number [ ] ; constructor ( x , y ) { super ( ArrayVector ) ; this . axes = [ x , y ] ; this . ctor = ArrayVector ; } get x ( ) : number { return this . axes [ 0 ] ; } set x ( x ) { this . axes [ 0 ] = x ; } get y ( ) : number { return this . axes [ 1 ] ; } set y ( y ) { this . axes [ 1 ] = y ; } }