Class Plane
Defined in File geometric_shapes.h
Inheritance Relationships
Base Type
public coal::ShapeBase
(Class ShapeBase)
Class Documentation
-
class Plane : public coal::ShapeBase
Infinite plane. A plane can be viewed as two half spaces; it has no priviledged direction. Note: prefer using a Halfspace instead of a Plane if possible, it has better behavior w.r.t. collision detection algorithms.
Public Functions
-
inline Plane(const Vec3s &n_, CoalScalar d_)
Construct a plane with normal direction and offset.
-
inline Plane(CoalScalar a, CoalScalar b, CoalScalar c, CoalScalar d_)
Construct a plane with normal direction and offset.
-
inline Plane()
-
inline CoalScalar signedDistance(const Vec3s &p) const
-
inline CoalScalar distance(const Vec3s &p) const
Protected Functions
-
void unitNormalTest()
Turn non-unit normal into unit.
-
inline Plane(const Vec3s &n_, CoalScalar d_)