API Referenceatlasatlas/units
BoundingBox
Axis-aligned bounds with inclusive point containment and intersection checks.
Module: atlas/units
Axis-aligned bounds with inclusive point containment and intersection checks.
Declaration
export class BoundingBox { ... }Constructors
constructor(min: Position3d, max: Position3d);Properties
min
min: Position3d;max
max: Position3d;Methods
toString
toString(): string;contains
Tests whether the point lies inside or on the bounds.
contains(point: Position3d): boolean;intersects
Tests whether the bounds overlap or touch.
intersects(other: BoundingBox): boolean;