GenGeo  1.1
Cylinder Class Reference

#include <Cylinder.h>

Inheritance diagram for Cylinder:
Collaboration diagram for Cylinder:

Public Member Functions

 Cylinder ()
 Cylinder (const Vector3 &, const Vector3 &, double)
 ~Cylinder ()
virtual double getDirDist (const Vector3 &) const
virtual double getDist (const Vector3 &) const
double getRadius () const
Vector3 getBasePoint () const
Vector3 getAxis () const
- Public Member Functions inherited from AGeometricObject
virtual ~AGeometricObject ()

Private Attributes

Vector3 m_c
Vector3 m_axis
double m_r

Constructor & Destructor Documentation

Cylinder::Cylinder ( )
Cylinder::Cylinder ( const Vector3 c,
const Vector3 axis,
double  r 
)

References m_axis, m_c, and m_r.

Cylinder::~Cylinder ( )
inline

Member Function Documentation

Vector3 Cylinder::getAxis ( ) const
inline
Vector3 Cylinder::getBasePoint ( ) const
inline
double Cylinder::getDirDist ( const Vector3 P) const
virtual

Get distance between a point and a cylindical surface. The function returns the directed distance assuming an inward facing surface normal, i.e. the result is positive if the point is inside the cylinder and negative if it is outside.

Parameters
Pthe point

References m_axis, m_c, and m_r.

Referenced by CylinderVol::isFullyOutside(), and CylinderVol::isIn().

double Cylinder::getDist ( const Vector3 P) const
virtual

Get distance between a point and a cylindical surface. The function returns the absolute distance, i.e. the result is always positive.

Parameters
Pthe point

Implements AGeometricObject.

References m_axis, m_c, and m_r.

Referenced by CylinderWithJointSet::getClosestObjects(), and CylinderVol::getClosestObjects().

double Cylinder::getRadius ( ) const
inline

Member Data Documentation

Vector3 Cylinder::m_axis
private

Referenced by Cylinder(), getAxis(), getDirDist(), and getDist().

Vector3 Cylinder::m_c
private
double Cylinder::m_r
private

The documentation for this class was generated from the following files: