#include <IceOBB.h>
Public Member Functions | |
void | ComputeLSS (LSS &lss) const |
bool | ComputePlanes (Plane *planes) const |
bool | ComputePoints (Point *pts) const |
bool | ComputeVertexNormals (Point *pts) const |
void | ComputeWorldEdgeNormal (udword edge_index, Point &world_normal) const |
bool | ContainsPoint (const Point &p) const |
void | Create (const AABB &aabb, const Matrix4x4 &mat) |
inline_ const Point & | GetCenter () const |
const udword * | GetEdges () const |
inline_ const Point & | GetExtents () const |
const Point * | GetLocalEdgeNormals () const |
inline_ const Matrix3x3 & | GetRot () const |
inline_ void | GetRotatedExtents (Matrix3x3 &extents) const |
BOOL | IsInside (const OBB &box) const |
inline_ BOOL | IsValid () const |
inline_ | OBB () |
Constructor. More... | |
inline_ | OBB (const Point ¢er, const Point &extents, const Matrix3x3 &rot) |
Constructor. More... | |
inline_ void | Rotate (const Matrix4x4 &mtx, OBB &obb) const |
void | SetEmpty () |
inline_ | ~OBB () |
Destructor. More... | |
Public Attributes | |
Point | mCenter |
B for Box. More... | |
Point | mExtents |
B for Bounding. More... | |
Matrix3x3 | mRot |
O for Oriented. More... | |
bool OBB::ComputePlanes | ( | Plane * | planes | ) | const |
Computes the obb planes.
planes | [out] 6 box planes |
bool OBB::ComputePoints | ( | Point * | pts | ) | const |
Computes the obb points.
pts | [out] 8 box points |
bool OBB::ComputeVertexNormals | ( | Point * | pts | ) | const |
Computes vertex normals.
pts | [out] 8 box points |
Returns world edge normal
edge_index | [in] 0 <= edge index < 12 |
world_normal | [out] edge normal in world space |
Returns edges.
Returns local edge normals.