Represents an oriented bounding box. More...
#include <obb.h>
Public Member Functions | |
EigenSTL::vector_Vector3d | computeVertices () const |
Compute coordinates of the 8 vertices of this OBB. More... | |
bool | contains (const Eigen::Vector3d &point) const |
Check if this OBB contains the given point. More... | |
bool | contains (const OBB &obb) const |
Check if this OBB contains whole other OBB. More... | |
OBB * | extendApprox (const OBB &box) |
Add the other OBB to this one and compute an approximate enclosing OBB. More... | |
Eigen::Vector3d | getExtents () const |
Get the extents of the OBB. More... | |
void | getExtents (Eigen::Vector3d &extents) const |
Get the extents of the OBB. More... | |
Eigen::Isometry3d | getPose () const |
Get the pose of the OBB. More... | |
void | getPose (Eigen::Isometry3d &pose) const |
Get The pose of the OBB. More... | |
OBB () | |
Initialize an oriented bounding box at position 0, with 0 extents and identity orientation. More... | |
OBB (const Eigen::Isometry3d &pose, const Eigen::Vector3d &extents) | |
OBB (const OBB &other) | |
OBB & | operator= (const OBB &other) |
bool | overlaps (const OBB &other) const |
Check whether this and the given OBBs have nonempty intersection. More... | |
void | setPoseAndExtents (const Eigen::Isometry3d &pose, const Eigen::Vector3d &extents) |
Set both the pose and extents of the OBB. More... | |
AABB | toAABB () const |
Convert this OBB to an axis-aligned BB. More... | |
void | toAABB (AABB &aabb) const |
Convert this OBB to an axis-aligned BB. More... | |
virtual | ~OBB () |
Protected Attributes | |
std::unique_ptr< OBBPrivate > | obb_ |
PIMPL pointer. More... | |
bodies::OBB::OBB | ( | ) |
bodies::OBB::OBB | ( | const Eigen::Isometry3d & | pose, |
const Eigen::Vector3d & | extents | ||
) |
|
virtualdefault |
EigenSTL::vector_Vector3d bodies::OBB::computeVertices | ( | ) | const |
bool bodies::OBB::contains | ( | const Eigen::Vector3d & | point | ) | const |
bool bodies::OBB::contains | ( | const OBB & | obb | ) | const |
Eigen::Vector3d bodies::OBB::getExtents | ( | ) | const |
void bodies::OBB::getExtents | ( | Eigen::Vector3d & | extents | ) | const |
Eigen::Isometry3d bodies::OBB::getPose | ( | ) | const |
void bodies::OBB::getPose | ( | Eigen::Isometry3d & | pose | ) | const |
bool bodies::OBB::overlaps | ( | const OBB & | other | ) | const |
void bodies::OBB::setPoseAndExtents | ( | const Eigen::Isometry3d & | pose, |
const Eigen::Vector3d & | extents | ||
) |
AABB bodies::OBB::toAABB | ( | ) | const |
void bodies::OBB::toAABB | ( | AABB & | aabb | ) | const |
|
protected |