GenGeo  1.1
Plane Class Reference

class for a plane in 3D More...

#include <Plane.h>

Inheritance diagram for Plane:
Collaboration diagram for Plane:

Public Member Functions

 Plane ()
 Plane (const Vector3 &, const Vector3 &)
virtual double getDist (const Vector3 &) const
Vector3 getOrig () const
Vector3 getNormal () const
- Public Member Functions inherited from AGeometricObject
virtual ~AGeometricObject ()

Private Attributes

Vector3 m_p
Vector3 m_normal

Friends

ostream & operator<< (ostream &, const Plane &)

Detailed Description

class for a plane in 3D

Constructor & Destructor Documentation

Plane::Plane ( )

References m_normal, and m_p.

Plane::Plane ( const Vector3 orig,
const Vector3 normal 
)

construct plane from origin and normal

Parameters
origa point within the plane
normalthe normal of the plane (will be normalized)

References m_normal, m_p, and Vector3::unit().

Here is the call graph for this function:

Member Function Documentation

double Plane::getDist ( const Vector3 p) const
virtual

Get the distance of a point from the line

Parameters
pthe point

Implements AGeometricObject.

References m_normal, and m_p.

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

Vector3 Plane::getNormal ( ) const
inline
Vector3 Plane::getOrig ( ) const
inline

Friends And Related Function Documentation

ostream& operator<< ( ostream &  ost,
const Plane P 
)
friend

Member Data Documentation

Vector3 Plane::m_normal
private

Referenced by getDist(), getNormal(), operator<<(), and Plane().

Vector3 Plane::m_p
private

Referenced by getDist(), getOrig(), operator<<(), and Plane().


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