vtf-logo

geom::Plane< T > Class Template Reference

A plane in 3 dimensions. More...

#include <Plane.h>

List of all members.

Public Types

typedef T Number
 The number type.
typedef ads::FixedArray<
3, T > 
Point
 The representation for a point.

Public Member Functions

Constructors etc.
 Plane ()
 Default constructor. Uninitialized memory.
 Plane (const Point &point, const Point &normal)
 Construct from a point on the plane and a normal to the plane.
 Plane (const Point &a, const Point &b, const Point &c)
 Construct from three points on the plane.
void make (const Point &a, const Point &b, const Point &c)
 Make from three points on the plane.
 Plane (const Plane< T > &other)
 Copy constructor.
Planeoperator= (const Plane &other)
 Assignment operator.
 ~Plane ()
 Trivial destructor.
Accesors.
const PointgetPointOn () const
 Return a point on the plane.
const PointgetNormal () const
 Return the normal to the plane.
Validity checking.
bool isValid () const
 Return true if the plane is valid.
Arithmetic operators.
Planeoperator+= (const Point &p)
 Translate the plane by +p.
Planeoperator-= (const Point &p)
 Translate the plane by -p.
Mathematical functions.
computeSignedDistance (const Point &p) const
 Return the distance from p to the plane.
computeSignedDistanceAndClosestPoint (const Point &x, Point *closestPoint) const
 Return distance from p to the plane. Set cp to be the closest point.

Related Functions

(Note that these are not member functions.)

const Plane< T > & operator+ (const Plane< T > &x)
 The positive operator. Return the same plane.
Plane< T > operator- (const Plane< T > &x)
 The negative operator. Return the plane with opposite orientation.
bool operator== (const Plane< T > &x, const Plane< T > &y)
 Return true if the planes are equal.
bool operator!= (const Plane< T > &x, const Plane< T > &y)
 Return true if the planes are not equal.
std::istream & operator>> (std::istream &in, Plane< T > &x)
 Read the point and normal.
std::ostream & operator<< (std::ostream &out, const Plane< T > &x)
 Write the point and normal.


Detailed Description

template<typename T = double>
class geom::Plane< T >

A plane in 3 dimensions.

Parameters:
T is the number type. By default it is double.


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 12:56:00 2007 for Computational Geometry Package by  doxygen 1.4.7