Struct OBB
Defined in File OBB.h
Struct Documentation
-
struct OBB
Oriented bounding box class.
Public Functions
-
inline OBB()
-
bool overlap(const OBB &other) const
Check collision between two OBB
- Returns:
true if collision happens.
-
bool overlap(const OBB &other, const CollisionRequest &request, FCL_REAL &sqrDistLowerBound) const
Check collision between two OBB
- Return values:
sqrDistLowerBound – squared lower bound on distance between boxes if they do not overlap.
- Returns:
true if collision happens.
-
FCL_REAL distance(const OBB &other, Vec3f *P = NULL, Vec3f *Q = NULL) const
Distance between two OBBs, not implemented.
-
OBB &operator+=(const Vec3f &p)
A simple way to merge the OBB and a point (the result is not compact).
Public Members
-
Matrix3f axes
Orientation of OBB. axis[i] is the ith column of the orientation matrix for the box; it is also the i-th principle direction of the box. We assume that axis[0] corresponds to the axis with the longest box edge, axis[1] corresponds to the shorter one and axis[2] corresponds to the shortest one.
-
inline OBB()