Atlas Engine
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

Creates a new bounding box.

constructor(min: Position3d, max: Position3d);

Properties

min

The minimum.

min: Position3d;

max

The maximum.

max: Position3d;

Methods

toString

Returns a human-readable representation.

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;

On this page