Go to the documentation of this file.
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)
68 if(
box.GetMin(0)>GetMin(0))
return FALSE;
69 if(
box.GetMin(1)>GetMin(1))
return FALSE;
70 if(
box.GetMin(2)>GetMin(2))
return FALSE;
71 if(
box.GetMax(0)<GetMax(0))
return FALSE;
72 if(
box.GetMax(1)<GetMax(1))
return FALSE;
73 if(
box.GetMax(2)<GetMax(2))
return FALSE;
79 #if 1 // Added by AIST
80 typedef enum {SSV_PSS, SSV_LSS} ssv_type;
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_ float GetMax(udword axis) const
Get component of the box's max point along a given axis.
inline_ void GetMin(Point &min) const
Get min point of the box.
unsigned int udword
sizeof(udword) must be 4
int BOOL
Another boolean type.
static int max(int a, int b)
inline_ float Magnitude() const
Computes magnitude.
inline_ ~QuantizedAABB()
Destructor.
static int min(int a, int b)
inline_ PointComponent LargestAxis() const
Returns largest axis.
inline_ CollisionAABB()
Constructor.
inline_ ~CollisionAABB()
Destructor.
ssv_type mType
Type of SSV.
png_infop png_bytep * trans
inline_ void GetMax(Point &max) const
Get max point of the box.
signed short sword
sizeof(sword) must be 2
inline_ void TransformPoint(Point &dest, const Point &source, const Matrix3x3 &rot, const Point &trans)
Quickly rotates & translates a vector.
inline_ PointComponent SmallestAxis() const
Returns smallest axis.
inline_ QuantizedAABB()
Constructor.
Point mPoint1
End points of line segment.
inline_ float GetMin(udword axis) const
Get component of the box's min point along a given axis.
inline_ CollisionAABB(const AABB &b)
Constructor.
Point mExtents
Box extents.
unsigned short uword
sizeof(uword) must be 2
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:03