API reference

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

I

interfaceHasBoundingBox

@codexo/exojs / core / stable

Anything that can produce an axis-aligned bounding Rectangle.

0
props
1
methods
0
events
Import
import { HasBoundingBox } from '@codexo/exojs'

Anything that can produce an axis-aligned bounding Rectangle.

Methods1
The axis-aligned bounding box of this object. Pass out to write into a rectangle you own - every implementer honours it, so this form is always safe to retain and never allocates. Without out, the math shape values (Rectangle, Circle, Polygon, ...) return a **fresh** rectangle, while a node or view that maintains a cached box (see SceneNode.getBounds) returns that cached instance, which the next invalidation overwrites.
Source