Go to the documentation of this file.
38 #ifndef HPP_FCL_KDOP_H
39 #define HPP_FCL_KDOP_H
47 struct CollisionRequest;
92 class HPP_FCL_DLLAPI
KDOP {
95 Eigen::Array<FCL_REAL, N, 1>
dist_;
109 return (dist_ == other.
dist_).all();
114 return (dist_ != other.
dist_).any();
129 Vec3f* Q = NULL)
const;
142 return width() * width() + height() * height() + depth() * depth();
147 return (dist_.template head<3>() + dist_.template segment<3>(N / 2)) / 2;
167 bool inside(
const Vec3f& p)
const;
171 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
190 HPP_FCL_DLLAPI KDOP<N>
translate(
const KDOP<N>& bv,
const Vec3f& t);
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
bool operator!=(const KDOP &other) const
Difference operator.
FCL_REAL depth() const
The (AABB) depth.
HPP_FCL_DLLAPI FCL_REAL distance(const Matrix3f &R0, const Vec3f &T0, const kIOS &b1, const kIOS &b2, Vec3f *P=NULL, Vec3f *Q=NULL)
Approximate distance between two kIOS bounding volumes.
FCL_REAL volume() const
The (AABB) volume.
FCL_REAL dist(short i) const
request to the collision algorithm
bool operator==(const KDOP &other) const
Equality operator.
FCL_REAL height() const
The (AABB) height.
Eigen::Matrix< FCL_REAL, 3, 3 > Matrix3f
#define HPP_FCL_THROW_PRETTY(message, exception)
HPP_FCL_DLLAPI bool overlap(const Matrix3f &R0, const Vec3f &T0, const AABB &b1, const AABB &b2)
Check collision between two aabbs, b1 is in configuration (R0, T0) and b2 is in identity.
Vec3f center() const
The (AABB) center.
FCL_REAL width() const
The (AABB) width.
Eigen::Array< FCL_REAL, N, 1 > dist_
Origin's distances to N KDOP planes.
static AABB translate(const AABB &aabb, const Vec3f &t)
translate the center of AABB by t
KDOP class describes the KDOP collision structures. K is set as the template parameter,...
FCL_REAL size() const
Size of the kDOP (used in BV_Splitter to order two kDOPs)
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:14