Public Member Functions | Public Attributes | Protected Member Functions
fcl::Plane Class Reference

Infinite plane. More...

#include <hpp/fcl/shape/geometric_shapes.h>

Inheritance diagram for fcl::Plane:
[legend]
Collaboration diagram for fcl::Plane:
[legend]

List of all members.

Public Member Functions

 Plane (const Vec3f &n_, FCL_REAL d_)
 Construct a plane with normal direction and offset.
 Plane (FCL_REAL a, FCL_REAL b, FCL_REAL c, FCL_REAL d_)
 Construct a plane with normal direction and offset.
 Plane ()
FCL_REAL signedDistance (const Vec3f &p) const
FCL_REAL distance (const Vec3f &p) const
void computeLocalAABB ()
 Compute AABB.
NODE_TYPE getNodeType () const
 Get node type: a plane.

Public Attributes

Vec3f n
 Plane normal.
FCL_REAL d
 Plane offset.

Protected Member Functions

void unitNormalTest ()
 Turn non-unit normal into unit.

Detailed Description

Infinite plane.


Constructor & Destructor Documentation

fcl::Plane::Plane ( const Vec3f n_,
FCL_REAL  d_ 
) [inline]

Construct a plane with normal direction and offset.

References unitNormalTest().

fcl::Plane::Plane ( FCL_REAL  a,
FCL_REAL  b,
FCL_REAL  c,
FCL_REAL  d_ 
) [inline]

Construct a plane with normal direction and offset.

References unitNormalTest().

fcl::Plane::Plane ( ) [inline]

Member Function Documentation

void fcl::Plane::computeLocalAABB ( ) [virtual]

Compute AABB.

Implements fcl::CollisionGeometry.

FCL_REAL fcl::Plane::distance ( const Vec3f p) const [inline]

References d, and n.

NODE_TYPE fcl::Plane::getNodeType ( ) const [inline, virtual]

Get node type: a plane.

Reimplemented from fcl::CollisionGeometry.

References fcl::GEOM_PLANE.

FCL_REAL fcl::Plane::signedDistance ( const Vec3f p) const [inline]

References d, and n.

void fcl::Plane::unitNormalTest ( ) [protected]

Turn non-unit normal into unit.

Referenced by Plane().


Member Data Documentation

Plane offset.

Referenced by distance(), and signedDistance().

Plane normal.

Referenced by distance(), and signedDistance().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines