basic point class More...
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 | |
| T | x |
| T | y |
basic point class
| Geom::Point2D< T >::Point2D | ( | T | xx = 0, |
|
| T | yy = 0 | |||
| ) | [inline] |
| virtual Geom::Point2D< T >::~Point2D | ( | ) | [inline, virtual] |
| double Geom::Point2D< T >::abs | ( | ) | const [inline, virtual] |
Reimplemented in Coord3.
| double Geom::Point2D< T >::distTo | ( | const Point2D< T > & | pt | ) | const [inline, virtual] |
| bool Geom::Point2D< T >::isDefined | ( | ) | const [inline, virtual] |
Reimplemented in Coord3.
| bool Geom::Point2D< T >::operator!= | ( | const Point2D< T > & | p | ) | const [inline, virtual] |
| Point2D< T > Geom::Point2D< T >::operator* | ( | const T | factor | ) | const [inline] |
Reimplemented in Coord3.
| Point2D< T > & Geom::Point2D< T >::operator*= | ( | T | factor | ) | [inline, virtual] |
Reimplemented in Coord3.
| Point2D< T > Geom::Point2D< T >::operator+ | ( | const Point2D< T > & | p | ) | const [inline] |
| Point2D< T > & Geom::Point2D< T >::operator+= | ( | T | dist | ) | [inline, virtual] |
| Point2D< T > & Geom::Point2D< T >::operator+= | ( | const Point2D< T > & | p | ) | [inline] |
| Point2D< T > Geom::Point2D< T >::operator- | ( | ) | [inline] |
| Point2D< T > Geom::Point2D< T >::operator- | ( | const Point2D< T > & | p | ) | const [inline] |
| Point2D< T > & Geom::Point2D< T >::operator-= | ( | const Point2D< T > & | p | ) | [inline] |
| Point2D< T > Geom::Point2D< T >::operator/ | ( | const T | den | ) | const [inline] |
Reimplemented in Coord3.
| Point2D< T > & Geom::Point2D< T >::operator/= | ( | T | den | ) | [inline, virtual] |
Reimplemented in Coord3.
| bool Geom::Point2D< T >::operator== | ( | const Point2D< T > & | p | ) | const [inline, virtual] |
| T & Geom::Point2D< T >::operator[] | ( | int | idx | ) | [inline, virtual] |
Reimplemented in Coord3.
| T Geom::Point2D< T >::operator[] | ( | int | idx | ) | const [inline, virtual] |
Reimplemented in Coord3.
| Point2D< T > & Geom::Point2D< T >::setFrom | ( | const Point2D< TT > & | a | ) | [inline] |
| void Geom::Point2D< T >::setXY | ( | T | xx, | |
| T | yy | |||
| ) | [inline] |
| T Geom::Point2D< T >::sqAbs | ( | ) | const [inline, virtual] |
Reimplemented in Coord3.
| T Geom::Point2D< T >::sqDistTo | ( | const Point2D< T > & | pt | ) | const [inline, virtual] |
| static Point2D<T> Geom::Point2D< T >::udf | ( | ) | [inline, static] |
| Point2D< T > & Geom::Point2D< T >::zero | ( | ) | [inline] |
| T Geom::Point2D< T >::x |
| T Geom::Point2D< T >::y |
1.7.1