Public Member Functions | Public Attributes | List of all members
coal::OBB Struct Reference

Oriented bounding box class. More...

#include <OBB.h>

Public Member Functions

const Vec3scenter () const
 Center of the OBB. More...
 
bool contain (const Vec3s &p) const
 Check whether the OBB contains a point. More...
 
CoalScalar depth () const
 Depth of the OBB. More...
 
CoalScalar distance (const OBB &other, Vec3s *P=NULL, Vec3s *Q=NULL) const
 Distance between two OBBs, not implemented. More...
 
CoalScalar height () const
 Height of the OBB. More...
 
 OBB ()
 
bool operator!= (const OBB &other) const
 Difference operator. More...
 
OBB operator+ (const OBB &other) const
 Return the merged OBB of current OBB and the other one (the result is not compact). More...
 
OBBoperator+= (const OBB &other)
 Merge the OBB and another OBB (the result is not compact). More...
 
OBBoperator+= (const Vec3s &p)
 A simple way to merge the OBB and a point (the result is not compact). More...
 
bool operator== (const OBB &other) const
 Equality operator. More...
 
bool overlap (const OBB &other) const
 
bool overlap (const OBB &other, const CollisionRequest &request, CoalScalar &sqrDistLowerBound) const
 
CoalScalar size () const
 Size of the OBB (used in BV_Splitter to order two OBBs) More...
 
CoalScalar volume () const
 Volume of the OBB. More...
 
CoalScalar width () const
 Width of the OBB. More...
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW Matrix3s 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. More...
 
Vec3s extent
 Half dimensions of OBB. More...
 
Vec3s To
 Center of OBB. More...
 

Detailed Description

Oriented bounding box class.

Definition at line 51 of file include/coal/BV/OBB.h.


The documentation for this struct was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00