Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <IceOBB.h>
Public Member Functions | |
inline_ | OBB () |
Constructor. More... | |
inline_ | OBB (const Point ¢er, const Point &extents, const Matrix3x3 &rot) |
Constructor. More... | |
inline_ | ~OBB () |
Destructor. More... | |
void | SetEmpty () |
bool | ContainsPoint (const Point &p) const |
void | Create (const AABB &aabb, const Matrix4x4 &mat) |
inline_ void | Rotate (const Matrix4x4 &mtx, OBB &obb) const |
inline_ BOOL | IsValid () const |
bool | ComputePlanes (Plane *planes) const |
bool | ComputePoints (Point *pts) const |
bool | ComputeVertexNormals (Point *pts) const |
const udword * | GetEdges () const |
const Point * | GetLocalEdgeNormals () const |
void | ComputeWorldEdgeNormal (udword edge_index, Point &world_normal) const |
void | ComputeLSS (LSS &lss) const |
bool | IsInside (const OBB &box) const |
inline_ const Point & | GetCenter () const |
inline_ const Point & | GetExtents () const |
inline_ const Matrix3x3 & | GetRot () const |
inline_ void | GetRotatedExtents (Matrix3x3 &extents) const |
Public Attributes | |
Point | mCenter |
B for Box. More... | |
Point | mExtents |
B for Bounding. More... | |
Matrix3x3 | mRot |
O for Oriented. More... | |
void OBB::ComputeLSS | ( | LSS & | lss) | const |
Computes the obb planes.
planes | [out] 6 box planes |
Referenced by PlanesCollider::Collide().
Computes the obb points.
pts | [out] 8 box points |
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 |
const udword* OBB::GetEdges | ( | ) | const |
Returns edges.
const Point* OBB::GetLocalEdgeNormals | ( | ) | const |
Returns local edge normals.
Checks the OBB is valid.
Recomputes the OBB after an arbitrary transform by a 4x4 matrix.
mtx | [in] the transform matrix |
obb | [out] the transformed OBB |
Definition at line 65 of file IceOBB.h.
Referenced by PlanesCollider::Collide().
|
inline |