import type { Vector2Like } from 'modern-path2d'; import type { RectangleLike } from './Aabb2D'; import { Aabb2D } from './Aabb2D'; export interface RotatedRectangleLike extends RectangleLike { rotation?: number; } /** * OrientedBoundingBox2D */ export declare class Obb2D extends Aabb2D implements RotatedRectangleLike { /** * Rotation radians */ rotation: number; get rotationDegrees(): number; constructor(); constructor(rect: RotatedRectangleLike); constructor(pointArray: Vector2Like[], rotation?: number); overlap(obb: Obb2D | Aabb2D, axis?: 'x' | 'y'): boolean; toCssStyle(): { left: string; top: string; width: string; height: string; transform: string; }; toArray(): number[]; toJSON(): Required; clone(): Obb2D; }