/** 2D vector with x, y components. */ export declare class Vector2 { #private; constructor(x?: number, y?: number); get x(): number; set x(value: number); get y(): number; set y(value: number); add(v: Vector2): this; clone(): Vector2; copy(v: Vector2): this; /** 2D cross product (scalar). */ cross(v: Vector2): number; /** Cross product magnitude of two 2D vectors. */ static cross(x1: number, y1: number, x2: number, y2: number): number; distanceTo(v: Vector2): number; dot(v: Vector2): number; /** Dot product of (x, y) with a target vector. */ static dot(x: number, y: number, target?: Vector2): number; equals(v: Vector2): boolean; fromArray(array: number[]): this; get length(): number; get lengthSq(): number; lerp(v: Vector2, alpha: number): this; /** Component-wise max. */ max(v: Vector2): this; /** Component-wise min. */ min(v: Vector2): this; mulScalar(scalar: number): this; normalize(): this; set(x: number, y: number): this; sub(v: Vector2): this; /** Truncates x and y to integers via Math.trunc(). */ trunc(): this; [Symbol.iterator](): Generator; } //# sourceMappingURL=Vector2.d.ts.map