Box
An axis-aligned 3D box represented by its center and half-extent.
Vectors are float3 arrays and matrices column-major mat3f/mat4f arrays, as in the rest of the API.
Properties
Functions
Link copied to clipboard
The smallest sphere containing this box: its center (xyz) and radius (w).
Link copied to clipboard
The largest coordinates corner of the box: center + halfExtent.
Link copied to clipboard
The lowest coordinates corner of the box: center - halfExtent.
Link copied to clipboard
Link copied to clipboard
A box centered in tr with the same extent as this one.