import { Vector2 } from "./Vector2.ts"; /** 2D axis-aligned bounding box. */ export declare class Box2 { #private; constructor(min?: Vector2, max?: Vector2); get min(): Vector2; set min(value: Vector2); get max(): Vector2; set max(value: Vector2); set(min: Vector2, max: Vector2): this; clone(): Box2; copy(box: Box2): this; makeEmpty(): this; isEmpty(): boolean; getCenter(target?: Vector2): Vector2; getSize(target?: Vector2): Vector2; expandByPoint(point: Vector2): this; expandByVector(vector: Vector2): this; expandByScalar(scalar: number): this; containsPoint(point: Vector2): boolean; containsBox(box: Box2): boolean; /** Returns [0,1] parameter of point within box dimensions. */ getParameter(point: Vector2, target?: Vector2): Vector2; intersectsBox(box: Box2): boolean; clampPoint(point: Vector2, target?: Vector2): Vector2; distanceToPoint(point: Vector2): number; /** Returns the intersection of this box with another. */ intersect(box: Box2): this; /** Expands this box to contain another. */ union(box: Box2): this; translate(offset: Vector2): this; equals(box: Box2): boolean; } //# sourceMappingURL=Box2.d.ts.map