20 #ifndef __OPC_COMMON_H__ 21 #define __OPC_COMMON_H__ 24 #ifdef OPC_CPU_COMPARE 25 #define GREATER(x, y) AIR(x) > IR(y) 27 #define GREATER(x, y) fabsf(x) > (y) 79 #if 1 // Added by AIST 88 if (mExtents[minAxis] > 0 && mExtents[maxAxis]/mExtents[minAxis] > 2){
91 mPoint0[maxAxis] -= mExtents[maxAxis];
93 mPoint1[maxAxis] += mExtents[maxAxis];
120 dest.
x = trans.
x + source.
x * rot.
m[0][0] + source.
y * rot.
m[1][0] + source.
z * rot.
m[2][0];
121 dest.
y = trans.
y + source.
x * rot.
m[0][1] + source.
y * rot.
m[1][1] + source.
z * rot.
m[2][1];
122 dest.
z = trans.
z + source.
x * rot.
m[0][2] + source.
y * rot.
m[1][2] + source.
z * rot.
m[2][2];
125 #endif //__OPC_COMMON_H__
inline_ QuantizedAABB()
Constructor.
Point mPoint1
End points of line segment.
unsigned short uword
sizeof(uword) must be 2
inline_ void GetExtents(Point &extents) const
Get box extents.
static int min(int a, int b)
inline_ CollisionAABB(const AABB &b)
Constructor.
inline_ float GetMin(udword axis) const
Get component of the box's min point along a given axis.
Point mExtents
Box extents.
inline_ void GetMax(Point &max) const
Get max point of the box.
png_infop png_bytep * trans
int BOOL
Another boolean type.
unsigned int udword
sizeof(udword) must be 4
inline_ ~QuantizedAABB()
Destructor.
inline_ float Magnitude() const
Computes magnitude.
inline_ PointComponent LargestAxis() const
Returns largest axis.
inline_ float GetMax(udword axis) const
Get component of the box's max point along a given axis.
inline_ CollisionAABB()
Constructor.
inline_ PointComponent SmallestAxis() const
Returns smallest axis.
ssv_type mType
Type of SSV.
inline_ void TransformPoint(Point &dest, const Point &source, const Matrix3x3 &rot, const Point &trans)
Quickly rotates & translates a vector.
signed short sword
sizeof(sword) must be 2
inline_ void GetCenter(Point ¢er) const
Get box center.
inline_ void GetMin(Point &min) const
Get min point of the box.
static int max(int a, int b)
inline_ ~CollisionAABB()
Destructor.