46 bool ContainsPoint(
const Point& p)
const;
84 if(mExtents.x < 0.0f)
return FALSE;
85 if(mExtents.y < 0.0f)
return FALSE;
86 if(mExtents.z < 0.0f)
return FALSE;
96 bool ComputePlanes(
Plane* planes)
const;
105 bool ComputePoints(
Point* pts)
const;
114 bool ComputeVertexNormals(
Point* pts)
const;
122 const udword* GetEdges()
const;
130 const Point* GetLocalEdgeNormals()
const;
139 void ComputeWorldEdgeNormal(
udword edge_index,
Point& world_normal)
const;
147 void ComputeLSS(
LSS& lss)
const;
166 extents.
Scale(mExtents);
177 #endif // __ICEOBB_H__
inline_ ~OBB()
Destructor.
Point mExtents
B for Bounding.
inline_ const Matrix3x3 & GetRot() const
inline_ const Point & GetExtents() const
inline_ void Scale(const Point &p)
Scales from a Point. Each row is multiplied by a component.
inline_ const Point & GetCenter() const
inline_ OBB(const Point ¢er, const Point &extents, const Matrix3x3 &rot)
Constructor.
int BOOL
Another boolean type.
unsigned int udword
sizeof(udword) must be 4
inline_ OBB()
Constructor.
RTObject_impl * Create(Manager *manager)
inline_ void GetRotatedExtents(Matrix3x3 &extents) const
Matrix3x3 mRot
O for Oriented.
#define MIN_FLOAT
min possible loat value