Public Member Functions
|Return the center of the box and the pivot for the axis. |
|Return the dimensions of the box. |
|Return a sphere that encapsulates the box. |
|void||toPlanes (plane3 planes)|
|Convert the oriented bounding box into six planes. |
|vec3||toWorld (vec3 vector)|
|Convert a local coordinate to world coordinates. |
|vec3||toLocal (vec3 vector)|
|Convert a world coordinate to local coordinates. |
|bit||contains (vec3 vector)|
|Return whether this world vector is inside the box. |
|vec3||corner (uint index)|
|Return an indexed corner of the box in world coordinates. |
|bit||overlaps (obb3 other)|
|Return whether the bounding boxes overlap one another. |
Static Public Member Functions
|obb3||createSpoke (vec3 centerTop, mat3 axis, vec3 size)|
|Create a spoke oriented bounding box. |
|The base box. |
|Orientation axis. |
|(Note that these are not member functions.) |
|obb3||aobb3 (box3 box, mat3 axis)|
|Create an oriented bounding box. |
|obb3||aobb3 (box3 box)|
|Create an oriented bounding box with an identity axis. |
Create a spoke oriented bounding box.
Return whether the bounding boxes overlap one another.
This function was stolen from ODE.
Convert the oriented bounding box into six planes.
The OBB pivots around the center of box.