import { ReadonlySimpleVector2, SimpleVector2 } from "../../../math"; import { MinMax2D } from "../../../types"; import { Circle } from "./circle"; import { MassAble2D } from "./object-2d"; import { Ray2D } from "./ray-2d"; /** * https://github.com/schteppe/p2.js/blob/master/src/shapes/Box.js */ export declare class Rect implements MassAble2D { readonly position: ReadonlySimpleVector2; readonly size: ReadonlySimpleVector2; constructor(position: ReadonlySimpleVector2, size: ReadonlySimpleVector2); get area(): number; get momentOfInertia(): number; get boundingRadius(): number; get circuit(): number; get center(): ReadonlySimpleVector2; toMinMax(): MinMax2D; static fromSphere({ radius, center }: Pick): Rect; static fromRay({ origin, direction, length }: Pick, realLength?: number): Rect; static fromPoints(points: SimpleVector2[], offsetX?: number, offsetY?: number): Rect; static fromMinMax({ min, max }: MinMax2D): Rect; } //# sourceMappingURL=rect.d.ts.map