48 struct CollisionRequest;
90 *
this = *
this + other;
100 return extent.squaredNorm();
112 return 2 * extent[0];
118 return 2 * extent[1];
124 return 2 * extent[2];
FCL_REAL volume() const
Volume of the OBB.
Definition: OBB.h:128
Main namespace.
Definition: AABB.h:43
FCL_REAL distance(const OBB &other, Vec3f *P=NULL, Vec3f *Q=NULL) const
Distance between two OBBs, not implemented.
Oriented bounding box class.
Definition: OBB.h:54
FCL_REAL height() const
Height of the OBB.
Definition: OBB.h:116
Eigen::Matrix< FCL_REAL, 3, 3 > Matrix3f
Definition: data_types.h:74
KDOP< N > translate(const KDOP< N > &bv, const Vec3f &t)
translate the KDOP BV
bool overlap(const OBB &other) const
bool obbDisjoint(const Matrix3f &B, const Vec3f &T, const Vec3f &a, const Vec3f &b)
request to the collision algorithm
Definition: collision_data.h:150
double FCL_REAL
Definition: data_types.h:68
FCL_REAL depth() const
Depth of the OBB.
Definition: OBB.h:122
OBB operator+(const OBB &other) const
Return the merged OBB of current OBB and the other one (the result is not compact).
FCL_REAL size() const
Size of the OBB (used in BV_Splitter to order two OBBs)
Definition: OBB.h:98
bool contain(const Vec3f &p) const
Check whether the OBB contains a point.
Vec3f To
Center of OBB.
Definition: OBB.h:62
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
Definition: data_types.h:73
const Vec3f & center() const
Center of the OBB.
Definition: OBB.h:104
FCL_REAL width() const
Width of the OBB.
Definition: OBB.h:110
Matrix3f axes
Orientation of OBB. axis[i] is the ith column of the orientation matrix for the box; it is also the i...
Definition: OBB.h:59
OBB & operator+=(const Vec3f &p)
A simple way to merge the OBB and a point (the result is not compact).
Vec3f extent
Half dimensions of OBB.
Definition: OBB.h:65