import { SimpleVector2 } from "../../math"; import { MinMax2D } from "../../types"; import { RayCast2D, RaycastResult } from "../objects/2d/ray-2d"; import { AABB } from "./aabb"; export declare class AABB2 implements AABB { protected readonly min: SimpleVector2; protected readonly max: SimpleVector2; constructor(min: SimpleVector2, max: SimpleVector2); rayCast(result: RaycastResult, ray: RayCast2D, maxFraction?: number): boolean; expandByScalar(distance: number): void; expandByVector(vec: SimpleVector2): void; expandByPoint(point: SimpleVector2): void; expandByAABB(other: AABB2): void; moveByScalar(distance: number): void; getCenter(): SimpleVector2; getSize(): SimpleVector2; getVolume(): number; moveByVector(vec: SimpleVector2): void; getMinMax(): MinMax2D; static fromPosAndSize(pos: SimpleVector2, size: SimpleVector2): AABB2; getPosition(): SimpleVector2; static fromCenterAndSize(center: SimpleVector2, size: SimpleVector2): AABB2; moveCenterTo(center: SimpleVector2): void; } //# sourceMappingURL=aabb2.d.ts.map