/** A direction or point in two-dimensional Cartesian space. */ export declare class Vector { /** Zero length vector representing the origin. */ static readonly Zero: Vector; /** Unit vector in the positive x direction. */ static readonly X: Vector; /** Unit vector in the positive y direction. */ static readonly Y: Vector; /** Unit vector at an angle of PI/6 from the x axis. */ static readonly PI_6: Vector; /** Unit vector at an angle of PI/3 from the x axis. */ static readonly PI_3: Vector; /** Creates a unit vector given its angle in radians from the x axis. */ static direction(radians: number): Vector; /** The x coordinate. */ readonly x: number; /** The y coordinate. */ readonly y: number; /** Constructs a vector given its x and y coordinates. */ constructor(x: number, y: number); /** Returns true if this vector has the same coordinates as the given vector. */ equals(v: Vector): boolean; /** Returns the length of this vector. */ length(): number; /** Returns the dot product of this vector with the given vector. */ dot(v: Vector): number; /** Returns the vector that results from adding this vector and the given vector. */ plus(v: Vector): Vector; /** Returns the vector that results from subtracting the given vector from this vector. */ minus(v: Vector): Vector; /** * Returns the vector that results from scaling the coordinates by the given x and y factors. * If only one factor is given, it is used for both coordinates. */ scaledBy(kx: number, ky?: number): Vector; }