#include <Point2D.h>
Public Member Functions | |
Point2D (T x, T y) | |
Point2D (const Point2D< T > &other) | |
Point2D (const Point3D< T > &other) | |
Point2D () | |
virtual | ~Point2D () |
T | x () const |
T | y () const |
void | x (const T &xc) |
void | y (const T &yc) |
void | set (T x, T y) |
T | sqr_distance (const Point2D< T > &other) const |
double | distance (const Point2D< T > &other) const |
void | rotate (double theta) |
T | 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 | |
T | _x |
T | _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) |
Definition at line 18 of file Point2D.h.
T Point2D< T >::x | ( | ) | const [inline] |
Definition at line 46 of file Point2D.h.
Referenced by Point2DDistance< double >::diff(), hash_value(), RetinotopicOrientationConnectionPredicate::init(), Point2D< double >::set(), and Point2DDistance< double >::sqr_distance().
T Point2D< T >::y | ( | ) | const [inline] |
Definition at line 51 of file Point2D.h.
Referenced by Point2DDistance< double >::diff(), hash_value(), RetinotopicOrientationConnectionPredicate::init(), Point2D< double >::set(), and Point2DDistance< double >::sqr_distance().
void Point2D< T >::x | ( | const T & | xc | ) | [inline] |
void Point2D< T >::y | ( | const T & | yc | ) | [inline] |
void Point2D< T >::set | ( | T | x, | |
T | y | |||
) | [inline] |
Definition at line 82 of file Point2D.h.
Referenced by RetinotopicOrientationConnectionPredicate::init().
T Point2D< T >::sqr_abs | ( | ) | const [inline] |
Definition at line 107 of file Point2D.h.
Referenced by Point2D< double >::distance(), and Point2D< double >::sqr_distance().
std::size_t hash_value | ( | Point2D< T > const & | p | ) | [friend] |
ostream& operator<< | ( | ostream & | ss, | |
const Point2D< U > & | p | |||
) | [friend] |
Definition at line 170 of file Point2D.h.
Referenced by Point2D< double >::operator*(), Point2D< double >::operator*=(), Point2D< double >::operator+(), Point2D< double >::operator+=(), Point2D< double >::operator-(), Point2D< double >::operator-=(), Point2D< double >::operator/(), Point2D< double >::operator/=(), Point2D< double >::operator==(), Point2D< double >::rotate(), Point2D< double >::set(), Point2D< double >::sqr_abs(), and Point2D< double >::x().
Definition at line 171 of file Point2D.h.
Referenced by Point2D< double >::operator*(), Point2D< double >::operator*=(), Point2D< double >::operator+(), Point2D< double >::operator+=(), Point2D< double >::operator-(), Point2D< double >::operator-=(), Point2D< double >::operator/(), Point2D< double >::operator/=(), Point2D< double >::operator==(), Point2D< double >::rotate(), Point2D< double >::set(), Point2D< double >::sqr_abs(), and Point2D< double >::y().