Public Member Functions | Static Public Member Functions | Public Attributes

Geom::Point2D< T > Class Template Reference

basic point class More...

List of all members.

Public Member Functions

 Point2D (T xx=0, T yy=0)
virtual ~Point2D ()
template<class TT >
Point2D< T > & setFrom (const Point2D< TT > &)
void setXY (T xx, T yy)
Point2D< T > & zero ()
Point2D< T > operator- ()
virtual T & operator[] (int idx)
virtual T operator[] (int idx) const
virtual bool operator== (const Point2D< T > &) const
virtual bool operator!= (const Point2D< T > &) const
virtual Point2D< T > & operator+= (T dist)
virtual Point2D< T > & operator*= (T factor)
virtual Point2D< T > & operator/= (T den)
Point2D< T > & operator+= (const Point2D< T > &)
Point2D< T > & operator-= (const Point2D< T > &)
Point2D< T > operator+ (const Point2D< T > &) const
Point2D< T > operator- (const Point2D< T > &) const
Point2D< T > operator* (const T factor) const
Point2D< T > operator/ (const T den) const
virtual bool isDefined () const
virtual double abs () const
virtual T sqAbs () const
virtual double distTo (const Point2D< T > &) const
virtual T sqDistTo (const Point2D< T > &) const

Static Public Member Functions

static Point2D< T > udf ()

Public Attributes

x
y

Detailed Description

template<class T>
class Geom::Point2D< T >

basic point class


Constructor & Destructor Documentation

template<class T>
Geom::Point2D< T >::Point2D ( xx = 0,
yy = 0 
) [inline]
template<class T>
virtual Geom::Point2D< T >::~Point2D (  )  [inline, virtual]

Member Function Documentation

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

Reimplemented in Coord3.

template<class T>
double Geom::Point2D< T >::distTo ( const Point2D< T > &  pt  )  const [inline, virtual]
template<class T >
bool Geom::Point2D< T >::isDefined (  )  const [inline, virtual]

Reimplemented in Coord3.

template<class T>
bool Geom::Point2D< T >::operator!= ( const Point2D< T > &  p  )  const [inline, virtual]
template<class T>
Point2D< T > Geom::Point2D< T >::operator* ( const T  factor  )  const [inline]

Reimplemented in Coord3.

template<class T>
Point2D< T > & Geom::Point2D< T >::operator*= ( factor  )  [inline, virtual]

Reimplemented in Coord3.

template<class T>
Point2D< T > Geom::Point2D< T >::operator+ ( const Point2D< T > &  p  )  const [inline]
template<class T>
Point2D< T > & Geom::Point2D< T >::operator+= ( dist  )  [inline, virtual]
template<class T>
Point2D< T > & Geom::Point2D< T >::operator+= ( const Point2D< T > &  p  )  [inline]
template<class T >
Point2D< T > Geom::Point2D< T >::operator- (  )  [inline]
template<class T>
Point2D< T > Geom::Point2D< T >::operator- ( const Point2D< T > &  p  )  const [inline]
template<class T>
Point2D< T > & Geom::Point2D< T >::operator-= ( const Point2D< T > &  p  )  [inline]
template<class T>
Point2D< T > Geom::Point2D< T >::operator/ ( const T  den  )  const [inline]

Reimplemented in Coord3.

template<class T>
Point2D< T > & Geom::Point2D< T >::operator/= ( den  )  [inline, virtual]

Reimplemented in Coord3.

template<class T>
bool Geom::Point2D< T >::operator== ( const Point2D< T > &  p  )  const [inline, virtual]
template<class T >
T & Geom::Point2D< T >::operator[] ( int  idx  )  [inline, virtual]

Reimplemented in Coord3.

template<class T >
T Geom::Point2D< T >::operator[] ( int  idx  )  const [inline, virtual]

Reimplemented in Coord3.

template<class T >
template<class TT >
Point2D< T > & Geom::Point2D< T >::setFrom ( const Point2D< TT > &  a  )  [inline]
template<class T>
void Geom::Point2D< T >::setXY ( xx,
yy 
) [inline]
template<class T >
T Geom::Point2D< T >::sqAbs (  )  const [inline, virtual]

Reimplemented in Coord3.

template<class T>
T Geom::Point2D< T >::sqDistTo ( const Point2D< T > &  pt  )  const [inline, virtual]
template<class T>
static Point2D<T> Geom::Point2D< T >::udf (  )  [inline, static]

Reimplemented in Coord, and Coord3.

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

Member Data Documentation

template<class T>
T Geom::Point2D< T >::x
template<class T>
T Geom::Point2D< T >::y