#include <aabb.h>
Public Types | |
| enum | { LEFT = 1<<0, RIGHT = 1<<1, TOP = 1<<2, BOTTOM = 1<<3, NEARZ = 1<<4 } |
| Constants for the faces. More... | |
Public Methods | |
Constructors | |
| AABB (const V3 &position=V3::O, const V3 &lengths=V3::O) | |
| . | |
Initializers | |
| void | Set (const V3 &position, const V3 &lengths) |
| . | |
| void | Set (const V3 *verts, int numVerts) |
| Initialize with an array of points. | |
| void | Set (const std::vector< V3 > &verts) |
| Initialize with a vector of points. | |
| void | Add (const V3 *verts, int numVerts) |
| Expands the box with an array of points. | |
| void | Add (const std::vector< V3 > &verts) |
| Expands the box with an vector of points. | |
Accessors | |
| V3 | GetPosition () const |
| . | |
| V3 | GetLengths () const |
| . | |
| V3 | GetMin () const |
| . | |
| V3 | GetMax () const |
| . | |
| V3 | GetPoint (int i) const |
| Returns a box point. | |
| V3 | GetEdgePoint (int i, int j) const |
| Returns and edge point. | |
| V3 | GetFacePoint (int i, int j) const |
| Returns a face point. | |
| void | SetPosition (const V3 &position) |
| . | |
| void | SetLengths (const V3 &lengths) |
| . | |
Static Public Attributes | |
| const V3 | Points [8] |
| . | |
| const int | Edges [12][2] |
| . | |
| const int | Faces [6][4] |
| . | |
|
|
Constants for the faces.
|
|
||||||||||||
|
Returns and edge point.
|
|
||||||||||||
|
Returns a face point.
|
|
|
Returns a box point.
|
1.2.17