Point3D< T > Class Template Reference

#include <Point3D.h>

Inheritance diagram for Point3D< T >:

Inheritance graph
[legend]
Collaboration diagram for Point3D< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Point3D (T x, T y, T z)
 Point3D ()
virtual ~Point3D ()
x () const
y () const
z () const
void x (const T &xc)
void y (const T &yc)
void z (const T &zc)
void set (T x, T y, T z)
sqr_distance (const Point3D< T > &other) const
double distance (const Point3D< T > &other) const
sqr_abs () const
double abs () const
Point3D< T > operator+ (const Point3D< T > &other) const
Point3D< T > operator- (const Point3D< T > &other) const
Point3D< T > & operator+= (const Point3D< T > &other)
Point3D< T > & operator-= (const Point3D< T > &other)
bool operator== (const Point3D< T > &other) const

Protected Attributes

_x
_y
_z

Friends

std::size_t hash_value (Point3D< T > const &p)
template<class U>
ostream & operator<< (ostream &ss, const Point3D< U > &p)


Detailed Description

template<class T>
class Point3D< T >

Definition at line 15 of file Point3D.h.


Constructor & Destructor Documentation

template<class T>
Point3D< T >::Point3D ( x,
y,
z 
) [inline]

Definition at line 18 of file Point3D.h.

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

Definition at line 23 of file Point3D.h.

template<class T>
virtual Point3D< T >::~Point3D (  )  [inline, virtual]

Definition at line 28 of file Point3D.h.


Member Function Documentation

template<class T>
T Point3D< T >::x (  )  const [inline]

template<class T>
T Point3D< T >::y (  )  const [inline]

template<class T>
T Point3D< T >::z (  )  const [inline]

template<class T>
void Point3D< T >::x ( const T &  xc  )  [inline]

Definition at line 48 of file Point3D.h.

template<class T>
void Point3D< T >::y ( const T &  yc  )  [inline]

Definition at line 53 of file Point3D.h.

template<class T>
void Point3D< T >::z ( const T &  zc  )  [inline]

Definition at line 58 of file Point3D.h.

template<class T>
void Point3D< T >::set ( x,
y,
z 
) [inline]

Definition at line 64 of file Point3D.h.

template<class T>
T Point3D< T >::sqr_distance ( const Point3D< T > &  other  )  const [inline]

Definition at line 71 of file Point3D.h.

template<class T>
double Point3D< T >::distance ( const Point3D< T > &  other  )  const [inline]

Definition at line 76 of file Point3D.h.

template<class T>
T Point3D< T >::sqr_abs (  )  const [inline]

Definition at line 82 of file Point3D.h.

Referenced by Point3D< int >::abs().

template<class T>
double Point3D< T >::abs (  )  const [inline]

Definition at line 87 of file Point3D.h.

template<class T>
Point3D<T> Point3D< T >::operator+ ( const Point3D< T > &  other  )  const [inline]

Definition at line 92 of file Point3D.h.

template<class T>
Point3D<T> Point3D< T >::operator- ( const Point3D< T > &  other  )  const [inline]

Definition at line 99 of file Point3D.h.

Referenced by Point3D< int >::distance(), and Point3D< int >::sqr_distance().

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

Definition at line 106 of file Point3D.h.

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

Definition at line 114 of file Point3D.h.

template<class T>
bool Point3D< T >::operator== ( const Point3D< T > &  other  )  const [inline]

Definition at line 122 of file Point3D.h.


Friends And Related Function Documentation

template<class T>
std::size_t hash_value ( Point3D< T > const &  p  )  [friend]

Definition at line 127 of file Point3D.h.

template<class T>
template<class U>
ostream& operator<< ( ostream &  ss,
const Point3D< U > &  p 
) [friend]


Member Data Documentation

template<class T>
T Point3D< T >::_x [protected]

template<class T>
T Point3D< T >::_y [protected]

template<class T>
T Point3D< T >::_z [protected]


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

Generated on Wed Jul 9 16:34:52 2008 for PCSIM by  doxygen 1.5.5