API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classBounds

@codexo/exojs / core / stable

Mutable axis-aligned bounding box accumulator. Starts as the empty bounds (`-Infinity..Infinity` reversed) and grows monotonically as points or rectangles are merged in via Bounds.addCoords and Bounds.addRect. Used during scene-graph traversal to accumulate a subtree's combined extent for culling and hit-testing. The Bounds.getRect accessor lazily folds the current min/max into a shared Rectangle — copy the result if you need to retain it across further accumulation.

4
props
5
methods
0
events
Import
import { Bounds } from '@codexo/exojs'

Mutable axis-aligned bounding box accumulator. Starts as the empty bounds (`-Infinity..Infinity` reversed) and grows monotonically as points or rectangles are merged in via Bounds.addCoords and Bounds.addRect. Used during scene-graph traversal to accumulate a subtree's combined extent for culling and hit-testing.

The Bounds.getRect accessor lazily folds the current min/max into a shared Rectangle — copy the result if you need to retain it across further accumulation.

Constructors 1
new(): Bounds
Methods 5
addCoords(x: number, y: number): this
addRect(rectangle: Rectangle, transform?: Matrix): this
destroy(): void
getRect(): Rectangle
reset(): this
Properties 4
maxX: number
maxY: number
minX: number
minY: number
Source