API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classBounds
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.
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.
new(): BoundsaddCoords(x: number, y: number): thisaddRect(rectangle: ReadonlyRectangleRead-only view of a Rectangle: every accessor and non-mutating query a rectangle offers, with none of its writers. Returned by APIs that hand out a LIVE intern…, transform?: MatrixMutable 3×3 row-major affine transformation matrix used throughout the rendering and physics pipeline. Layout (row, column): ``` | a b x | | c d y | | e f z |…): thisdestroy(): voidreset(): thismaxX: numbermaxY: numberminX: numberminY: number