38 #ifndef FCL_SHAPE_HALFSPACE_H 39 #define FCL_SHAPE_HALFSPACE_H 59 template <
typename S_>
79 void computeLocalAABB()
override;
95 std::string representation(
int precision = 20)
const;
99 out <<
"Halfspace(n: " << halfspace.
n.transpose() <<
", d: " 100 << halfspace.
d <<
")";
107 void unitNormalTest();
113 template <
typename S>
friend std::ostream & operator<<(std::ostream &out, const Halfspace &halfspace)
NODE_TYPE
traversal node type: bounding volume (AABB, OBB, RSS, kIOS, OBBRSS, KDOP16, KDOP18, kDOP24), basic shape (box, sphere, ellipsoid, capsule, cone, cylinder, convex, plane, halfspace, triangle), and octree
Half Space: this is equivalent to the Planed in ODE. The separation plane is defined as n * x = d...
Base class for all basic geometric shapes.
template Halfspace< double > transform(const Halfspace< double > &a, const Transform3< double > &tf)
Eigen::Transform< S, 3, Eigen::Isometry > Transform3
S distance(const Eigen::MatrixBase< DerivedA > &R0, const Eigen::MatrixBase< DerivedB > &T0, const kIOS< S > &b1, const kIOS< S > &b2, Vector3< S > *P, Vector3< S > *Q)
Approximate distance between two kIOS bounding volumes.
Eigen::Matrix< S, 3, 1 > Vector3
Vector3< S > n
Planed normal.