Point2D< T > Class Template Reference

#include <Point2D.h>

Inheritance diagram for Point2D< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Point2D (T x, T y)
 Point2D (const Point2D< T > &other)
 Point2D (const Point3D< T > &other)
 Point2D ()
virtual ~Point2D ()
x () const
y () const
void x (const T &xc)
void y (const T &yc)
void set (T x, T y)
sqr_distance (const Point2D< T > &other) const
double distance (const Point2D< T > &other) const
void rotate (double theta)
sqr_abs () const
double abs () const
Point2D< T > operator+ (const Point2D< T > &other) const
Point2D< T > operator- (const Point2D< T > &other) const
Point2D< T > operator* (const T scale) const
Point2D< T > operator/ (const T scale) const
Point2D< T > & operator+= (const Point2D< T > &other)
Point2D< T > & operator-= (const Point2D< T > &other)
Point2D< T > & operator*= (const T scale)
Point2D< T > & operator/= (const T scale)
bool operator== (const Point2D< T > &other) const

Protected Attributes

_x
_y

Friends

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


Detailed Description

template<class T>
class Point2D< T >

Definition at line 18 of file Point2D.h.


Constructor & Destructor Documentation

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

Definition at line 23 of file Point2D.h.

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

Definition at line 27 of file Point2D.h.

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

Definition at line 32 of file Point2D.h.

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

Definition at line 37 of file Point2D.h.

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

Definition at line 42 of file Point2D.h.


Member Function Documentation

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

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

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

Definition at line 56 of file Point2D.h.

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

Definition at line 61 of file Point2D.h.

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

Definition at line 66 of file Point2D.h.

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

Definition at line 72 of file Point2D.h.

Referenced by Point2DDistance< double >::sqr_distance().

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

Definition at line 77 of file Point2D.h.

template<class T>
void Point2D< T >::rotate ( double  theta  )  [inline]

Definition at line 82 of file Point2D.h.

Referenced by RetinotopicOrientationConnectionPredicate::init().

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

Definition at line 91 of file Point2D.h.

Referenced by Point2D< double >::abs().

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

Definition at line 96 of file Point2D.h.

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

Definition at line 101 of file Point2D.h.

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

Definition at line 107 of file Point2D.h.

Referenced by Point2D< double >::distance(), and Point2D< double >::sqr_distance().

template<class T>
Point2D<T> Point2D< T >::operator* ( const T  scale  )  const [inline]

Definition at line 113 of file Point2D.h.

template<class T>
Point2D<T> Point2D< T >::operator/ ( const T  scale  )  const [inline]

Definition at line 119 of file Point2D.h.

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

Definition at line 125 of file Point2D.h.

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

Definition at line 132 of file Point2D.h.

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

Definition at line 139 of file Point2D.h.

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

Definition at line 146 of file Point2D.h.

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

Definition at line 153 of file Point2D.h.


Friends And Related Function Documentation

template<class T>
friend class Point3D< T > [friend]

Definition at line 21 of file Point2D.h.

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

Definition at line 158 of file Point2D.h.

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


Member Data Documentation

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

template<class T>
T Point2D< T >::_y [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