#include <OPC_IceHook.h>
Definition at line 19 of file OPC_IceHook.h.
inline_ IceMaths::OBB::OBB | ( | ) | [inline] |
Constructor.
Definition at line 23 of file OPC_IceHook.h.
inline_ IceMaths::OBB::OBB | ( | const Point & | center, |
const Point & | extents, | ||
const Matrix3x3 & | rot | ||
) | [inline] |
Constructor.
Definition at line 25 of file OPC_IceHook.h.
inline_ IceMaths::OBB::~OBB | ( | ) | [inline] |
Destructor.
Definition at line 27 of file OPC_IceHook.h.
void OBB::ComputeLSS | ( | LSS & | lss | ) | const |
Computes an LSS surrounding the OBB.
lss | [out] the LSS |
Definition at line 255 of file IceOBB.cpp.
bool OBB::ComputePlanes | ( | Plane * | planes | ) | const |
Computes the obb planes.
planes | [out] 6 box planes |
Definition at line 82 of file IceOBB.cpp.
bool OBB::ComputePoints | ( | Point * | pts | ) | const |
Computes the obb points.
pts | [out] 8 box points |
Definition at line 125 of file IceOBB.cpp.
bool OBB::ComputeVertexNormals | ( | Point * | pts | ) | const |
Computes vertex normals.
pts | [out] 8 box points |
Definition at line 166 of file IceOBB.cpp.
void OBB::ComputeWorldEdgeNormal | ( | udword | edge_index, |
Point & | world_normal | ||
) | const |
Returns world edge normal
edge_index | [in] 0 <= edge index < 12 |
world_normal | [out] edge normal in world space |
Definition at line 243 of file IceOBB.cpp.
bool OBB::ContainsPoint | ( | const Point & | p | ) | const |
Tests if a point is contained within the OBB.
p | [in] the world point to test |
Definition at line 32 of file IceOBB.cpp.
Builds an OBB from an AABB and a world transform.
aabb | [in] the aabb |
mat | [in] the world transform |
Definition at line 60 of file IceOBB.cpp.
inline_ const Point& IceMaths::OBB::GetCenter | ( | ) | const [inline] |
Definition at line 160 of file OPC_IceHook.h.
const udword * OBB::GetEdges | ( | ) | const |
Returns edges.
Definition at line 197 of file IceOBB.cpp.
inline_ const Point& IceMaths::OBB::GetExtents | ( | ) | const [inline] |
Definition at line 161 of file OPC_IceHook.h.
const Point * OBB::GetLocalEdgeNormals | ( | ) | const |
Returns local edge normals.
Definition at line 214 of file IceOBB.cpp.
inline_ const Matrix3x3& IceMaths::OBB::GetRot | ( | ) | const [inline] |
Definition at line 162 of file OPC_IceHook.h.
inline_ void IceMaths::OBB::GetRotatedExtents | ( | Matrix3x3 & | extents | ) | const [inline] |
Definition at line 164 of file OPC_IceHook.h.
BOOL OBB::IsInside | ( | const OBB & | box | ) | const |
Checks the OBB is inside another OBB.
box | [in] the other OBB |
Definition at line 288 of file IceOBB.cpp.
inline_ BOOL IceMaths::OBB::IsValid | ( | ) | const [inline] |
Checks the OBB is valid.
Definition at line 82 of file OPC_IceHook.h.
Recomputes the OBB after an arbitrary transform by a 4x4 matrix.
mtx | [in] the transform matrix |
obb | [out] the transformed OBB |
Definition at line 66 of file OPC_IceHook.h.
void IceMaths::OBB::SetEmpty | ( | ) | [inline] |
Setups an empty OBB.
Definition at line 34 of file OPC_IceHook.h.
B for Box.
Definition at line 170 of file OPC_IceHook.h.
B for Bounding.
Definition at line 171 of file OPC_IceHook.h.
O for Oriented.
Definition at line 172 of file OPC_IceHook.h.