Public Member Functions  
vec3  center () 
Return the center of the box and the pivot for the axis.  
vec3  dim () 
Return the dimensions of the box.  
sphere3  toSphere () 
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.  
Public Attributes  
box3  box 
The base box.  
mat3  axis 
Orientation axis.  
Related Functions  
(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.


Orientation axis. The OBB pivots around the center of box. 