Point3DBase< T > Class Template Reference

#include <point3d.h>

Collaboration diagram for Point3DBase< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Point3DBase ()
 Point3DBase (T xin, T yin, T zin)
 Point3DBase (const Point3DBase< T > &pt)
Point3DBase< T > operator= (const Point3DBase< T > &pt)
Point3DBase< T > operator-= (const Point3DBase< T > &pt)
Point3DBase< T > operator+= (const Point3DBase< T > &pt)
Point3DBase< T > operator *= (const int i)
Point3DBase< T > operator *= (const double d)
Point3DBase< T > operator *= (const Point3DBase< T > &pt)
Point3DBase< T > operator/= (const int i)
Point3DBase< T > operator/= (const double d)
Point3DBase< T > operator/= (const Point3DBase< T > &pt)
double Squared ()
double Length ()
Point3DBase< T > Abs ()
int IsZero ()
void Normalize ()
Point3DBase< T > Sign ()
double Dot (const Point3DBase< T > &pt)
Point3DBase< T > Cross (const Point3DBase< T > &pt)
double Determinant (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
double SquaredDist (Point3DBase< T > &pt)
void interp (Point3DBase< T > u, Point3DBase< T > v, double lambda)
double Dist (Point3DBase< T > &pt)
double Angle (Point3DBase< T > &pt)
void ForceMin (double min)
void ForceMax (double max)
void Xform (double M[4][4])
int insideQuadrilateral (const Point3DBase< T > p0, const Point3DBase< T > p1, const Point3DBase< T > p2, const Point3DBase< T > p3)
int insideTriangle (const Point3DBase< T > p0, const Point3DBase< T > p1, const Point3DBase< T > p2)

Public Attributes

x
y
z

Friends

Point3DBase< T > operator+ (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
Point3DBase< T > operator- (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
Point3DBase< T > operator- (const Point3DBase< T > &pt)
Point3DBase< T > operator * (const Point3DBase< T > &pt, const int i)
Point3DBase< T > operator * (const int i, const Point3DBase< T > &pt)
Point3DBase< T > operator * (const Point3DBase< T > &pt, const double d)
Point3DBase< T > operator * (const double d, const Point3DBase< T > &pt)
Point3DBase< T > operator * (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
Point3DBase< T > operator/ (const Point3DBase< T > &pt, const int i)
Point3DBase< T > operator/ (const Point3DBase< T > &pt, const double d)
Point3DBase< T > operator/ (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
ostream & operator<< (ostream &os, const Point3DBase< T > &pt)
istream & operator>> (istream &is, Point3DBase< T > &pt)
int operator== (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
int operator!= (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
int operator< (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)
int operator> (const Point3DBase< T > &pt1, const Point3DBase< T > &pt2)


Detailed Description

template<class T>
class Point3DBase< T >

Definition at line 14 of file point3d.h.


Constructor & Destructor Documentation

template<class T>
Point3DBase< T >::Point3DBase (  )  [inline]

Definition at line 20 of file point3d.h.

template<class T>
Point3DBase< T >::Point3DBase ( xin,
yin,
zin 
) [inline]

Definition at line 21 of file point3d.h.

template<class T>
Point3DBase< T >::Point3DBase ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 23 of file point3d.h.


Member Function Documentation

template<class T>
Point3DBase<T> Point3DBase< T >::operator= ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 90 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator-= ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 93 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator+= ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 96 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator *= ( const int  i  )  [inline]

Definition at line 99 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator *= ( const double  d  )  [inline]

Definition at line 102 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator *= ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 106 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator/= ( const int  i  )  [inline]

Definition at line 109 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator/= ( const double  d  )  [inline]

Definition at line 112 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::operator/= ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 116 of file point3d.h.

template<class T>
double Point3DBase< T >::Squared (  )  [inline]

Definition at line 131 of file point3d.h.

template<class T>
double Point3DBase< T >::Length (  )  [inline]

Definition at line 134 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::Abs (  )  [inline]

Definition at line 137 of file point3d.h.

template<class T>
int Point3DBase< T >::IsZero (  )  [inline]

Definition at line 140 of file point3d.h.

template<class T>
void Point3DBase< T >::Normalize (  )  [inline]

Definition at line 143 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::Sign (  )  [inline]

Definition at line 154 of file point3d.h.

template<class T>
double Point3DBase< T >::Dot ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 159 of file point3d.h.

template<class T>
Point3DBase<T> Point3DBase< T >::Cross ( const Point3DBase< T > &  pt  )  [inline]

Definition at line 164 of file point3d.h.

template<class T>
double Point3DBase< T >::Determinant ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [inline]

Definition at line 169 of file point3d.h.

template<class T>
double Point3DBase< T >::SquaredDist ( Point3DBase< T > &  pt  )  [inline]

Definition at line 175 of file point3d.h.

template<class T>
void Point3DBase< T >::interp ( Point3DBase< T >  u,
Point3DBase< T >  v,
double  lambda 
) [inline]

Definition at line 180 of file point3d.h.

template<class T>
double Point3DBase< T >::Dist ( Point3DBase< T > &  pt  )  [inline]

Definition at line 188 of file point3d.h.

template<class T>
double Point3DBase< T >::Angle ( Point3DBase< T > &  pt  )  [inline]

Definition at line 197 of file point3d.h.

template<class T>
void Point3DBase< T >::ForceMin ( double  min  )  [inline]

Definition at line 207 of file point3d.h.

template<class T>
void Point3DBase< T >::ForceMax ( double  max  )  [inline]

Definition at line 211 of file point3d.h.

template<class T>
void Point3DBase< T >::Xform ( double  M[4][4]  )  [inline]

Definition at line 216 of file point3d.h.

template<class T>
int Point3DBase< T >::insideQuadrilateral ( const Point3DBase< T >  p0,
const Point3DBase< T >  p1,
const Point3DBase< T >  p2,
const Point3DBase< T >  p3 
) [inline]

Definition at line 223 of file point3d.h.

template<class T>
int Point3DBase< T >::insideTriangle ( const Point3DBase< T >  p0,
const Point3DBase< T >  p1,
const Point3DBase< T >  p2 
) [inline]

Definition at line 264 of file point3d.h.


Friends And Related Function Documentation

template<class T>
Point3DBase<T> operator+ ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 26 of file point3d.h.

template<class T>
Point3DBase<T> operator- ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 38 of file point3d.h.

template<class T>
Point3DBase<T> operator- ( const Point3DBase< T > &  pt  )  [friend]

Definition at line 50 of file point3d.h.

template<class T>
Point3DBase<T> operator * ( const Point3DBase< T > &  pt,
const int  i 
) [friend]

Definition at line 53 of file point3d.h.

template<class T>
Point3DBase<T> operator * ( const int  i,
const Point3DBase< T > &  pt 
) [friend]

Definition at line 56 of file point3d.h.

template<class T>
Point3DBase<T> operator * ( const Point3DBase< T > &  pt,
const double  d 
) [friend]

Definition at line 59 of file point3d.h.

template<class T>
Point3DBase<T> operator * ( const double  d,
const Point3DBase< T > &  pt 
) [friend]

Definition at line 62 of file point3d.h.

template<class T>
Point3DBase<T> operator * ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 65 of file point3d.h.

template<class T>
Point3DBase<T> operator/ ( const Point3DBase< T > &  pt,
const int  i 
) [friend]

Definition at line 71 of file point3d.h.

template<class T>
Point3DBase<T> operator/ ( const Point3DBase< T > &  pt,
const double  d 
) [friend]

Definition at line 74 of file point3d.h.

template<class T>
Point3DBase<T> operator/ ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 77 of file point3d.h.

template<class T>
ostream& operator<< ( ostream &  os,
const Point3DBase< T > &  pt 
) [friend]

Definition at line 83 of file point3d.h.

template<class T>
istream& operator>> ( istream &  is,
Point3DBase< T > &  pt 
) [friend]

Definition at line 86 of file point3d.h.

template<class T>
int operator== ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 119 of file point3d.h.

template<class T>
int operator!= ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 122 of file point3d.h.

template<class T>
int operator< ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 125 of file point3d.h.

template<class T>
int operator> ( const Point3DBase< T > &  pt1,
const Point3DBase< T > &  pt2 
) [friend]

Definition at line 128 of file point3d.h.


Member Data Documentation

template<class T>
T Point3DBase< T >::x

Definition at line 19 of file point3d.h.

template<class T>
T Point3DBase< T >::y

Definition at line 19 of file point3d.h.

template<class T>
T Point3DBase< T >::z

Definition at line 19 of file point3d.h.


The documentation for this class was generated from the following file:
Generated on Thu Aug 30 11:05:00 2007 for SPRING Mac by  doxygen 1.5.3