GenGeo  1.1
Torus Class Reference

#include <Torus.h>

Inheritance diagram for Torus:
Collaboration diagram for Torus:

Public Member Functions

 Torus (const Vector3 &, const Vector3 &, double, double, bool)
 Torus ()
 ~Torus ()
virtual double getDist (const Vector3 &) const
double getInnerRadius () const
double getOuterRadius () 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_r1
double m_r2
bool m_inside

Constructor & Destructor Documentation

Torus::Torus ( const Vector3 c,
const Vector3 axis,
double  r1,
double  r2,
bool  inside 
)
Parameters
cbase point
axisaxis through the middle of the torus
r1outer radius
r2inner (tube) radius
insidecalc distance inside/outside

References m_axis, m_c, m_inside, m_r1, m_r2, and Vector3::unit().

Here is the call graph for this function:

Torus::Torus ( )
inline
Torus::~Torus ( )
inline

Member Function Documentation

Vector3 Torus::getAxis ( ) const
inline

References m_axis.

Vector3 Torus::getBasePoint ( ) const
inline

References m_c.

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

Implements AGeometricObject.

References m_axis, m_c, m_inside, m_r1, and m_r2.

Referenced by DogBone::getClosestObjects(), and DogBone::isIn().

double Torus::getInnerRadius ( ) const
inline

References m_r1.

double Torus::getOuterRadius ( ) const
inline

References m_r2.

Member Data Documentation

Vector3 Torus::m_axis
private

Referenced by getAxis(), getDist(), and Torus().

Vector3 Torus::m_c
private

Referenced by getBasePoint(), getDist(), and Torus().

bool Torus::m_inside
private

Referenced by getDist(), and Torus().

double Torus::m_r1
private

Referenced by getDist(), getInnerRadius(), and Torus().

double Torus::m_r2
private

Referenced by getDist(), getOuterRadius(), and Torus().


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