export declare class Vector3 { x: number; y: number; z: number; constructor(x?: number, y?: number, z?: number); set(x: number, y: number, z: number): this; copy(v: Vector3): this; add(v: Vector3): this; sub(v: Vector3): this; multiplyScalar(scalar: number): this; min(v: Vector3): this; max(v: Vector3): this; isValid(): boolean; equals(v: Vector3): boolean; toArray(): number[]; } export declare class Vector2 { x: number; y: number; constructor(x?: number, y?: number); set(x: number, y: number): this; copy(v: Vector2): this; add(v: Vector2): this; sub(v: Vector2): this; multiplyScalar(scalar: number): this; min(v: Vector2): this; max(v: Vector2): this; equals(v: Vector2): boolean; isValid(): boolean; almostEquals(v: Vector2, tolerance?: number): boolean; toArray(): number[]; distanceTo(v: Vector2): number; clamp01(): this; } export declare class Segment { origin: Vector3; target: Vector3; constructor(origin?: Vector3, target?: Vector3); static fromArray(array: number[]): Segment; toArray(): number[]; isValid(): boolean; equals(segment: Segment): boolean; } export declare class Box3 { min: Vector3; max: Vector3; constructor(min?: Vector3, max?: Vector3); static fromArray(array: number[]): Box3; isValid(): boolean; set(min: Vector3, max: Vector3): this; setFromPoints(points: Vector3[]): this; getCenter(target?: Vector3): Vector3; getSize(target?: Vector3): Vector3; containsPoint(point: Vector3): boolean; intersectsBox(box: Box3): boolean; expandByPoint(point: Vector3): this; union(box: Box3): this; toArray(): number[]; } export declare class RGBA { r: number; g: number; b: number; a: number; constructor(r: number, g: number, b: number, a?: number); isValid(): boolean; equals(color: RGBA): boolean; static fromString(str: string): RGBA; } export declare class RGB { r: number; g: number; b: number; constructor(r: number, g: number, b: number); } export declare class RGBA32 { readonly hex: number; constructor(hex: number); static fromInts(r: number, g: number, b: number, a?: number): RGBA32; static fromFloats(r: number, g: number, b: number, a?: number): RGBA32; static fromString(str: string): RGBA32; /** * The red component of the color in the range [0-255]. */ get r(): number; /** * The green component of the color in the range [0-255]. */ get g(): number; /** * The blue component of the color in the range [0-255]. */ get b(): number; /** * The alpha component of the color in the range [0-255]. */ get a(): number; } /** * Remaps the given value from the range [0-1] to [0-max]. */ export declare function remap(value: number, max: number): number; /** * Clamps the given value between the given min and max. */ export declare function clamp(value: number, min: number, max: number): number;