GenGeo  1.1
SphereIn Class Reference

#include <SphereIn.h>

Inheritance diagram for SphereIn:
Collaboration diagram for SphereIn:

Public Member Functions

 SphereIn ()
 SphereIn (const Vector3 &, double)
virtual double getDist (const Vector3 &) const
virtual double getDirDist (const Vector3 &) const
- Public Member Functions inherited from Sphere
 Sphere ()
 Sphere (const Vector3 &, double)
 Sphere (const Sphere &)
Vector3 Center () const
double Radius () const
int Id () const
int Tag () const
void setTag (int t)
void setId (int)
void shift (const Vector3 &s)
- Public Member Functions inherited from AGeometricObject
virtual ~AGeometricObject ()

Additional Inherited Members

- Static Public Member Functions inherited from Sphere
static void SetOutputStyle (int)
- Protected Attributes inherited from Sphere
Vector3 m_center
double m_rad
int m_id
int m_tag
bool m_valid
- Static Protected Attributes inherited from Sphere
static double NearZero = 1e-8
static int s_output_style = 0
static unsigned int s_current_id = 0

Constructor & Destructor Documentation

SphereIn::SphereIn ( )
SphereIn::SphereIn ( const Vector3 V,
double  r 
)

Member Function Documentation

double SphereIn::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 Sphere::m_center, and Sphere::m_rad.

Referenced by SphereVol::isIn(), and SphereVolWithJointSet::isIn().

double SphereIn::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

Reimplemented from Sphere.

References Sphere::m_center, and Sphere::m_rad.

Referenced by SphereVol::getClosestObjects(), SphereVolWithJointSet::getClosestObjects(), SphereSectionVol::getClosestObjects(), CircleVol::getClosestObjects(), and SphereSectionVol::isIn().


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