@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
17 lines • 619 B
TypeScript
import { type Vec } from "@thi.ng/vectors/api";
import type { AABBLike, Attribs, IHiccupShape3 } from "../api.js";
export declare class AABB implements AABBLike, IHiccupShape3<AABB> {
pos: Vec;
attribs?: Attribs | undefined;
readonly type = "aabb";
readonly dim = 3;
size: Vec;
constructor(pos?: Vec, size?: number | Vec, attribs?: Attribs | undefined);
copy(): AABB;
withAttribs(attribs: Attribs): AABB;
min(): Vec<number>;
max(): Vec<number>;
offset(offset: number): this;
toHiccup(): (string | Vec<number> | Attribs | undefined)[];
}
//# sourceMappingURL=aabb.d.ts.map