38 #ifndef FCL_SHAPE_HALFSPACE_H 39 #define FCL_SHAPE_HALFSPACE_H 41 #include "fcl/geometry/shape/shape_base.h" 42 #include "fcl/math/bv/OBB.h" 43 #include "fcl/math/bv/RSS.h" 44 #include "fcl/math/bv/OBBRSS.h" 45 #include "fcl/math/bv/kDOP.h" 46 #include "fcl/math/bv/kIOS.h" 54 template <
typename S_>
69 S signedDistance(
const Vector3<S>& p)
const;
71 S distance(
const Vector3<S>& p)
const;
99 #include "fcl/geometry/shape/halfspace-inl.h" 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
Definition: collision_geometry.h:54
Half Space: this is equivalent to the Planed in ODE. The separation plane is defined as n * x = d; Po...
Definition: halfspace.h:55
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
Base class for all basic geometric shapes.
Definition: shape_base.h:48
S d
Planed offset.
Definition: halfspace.h:83
NODE_TYPE getNodeType() const override
Get node type: a half space.
Definition: halfspace-inl.h:128
void unitNormalTest()
Turn non-unit normal into unit.
Definition: halfspace-inl.h:135
void computeLocalAABB() override
Compute AABB.
Definition: halfspace-inl.h:93
Vector3< S > n
Planed normal.
Definition: halfspace.h:80