![]() |
OpendTect
6.3
|
2D point or vector class. More...
Public Member Functions | |
| Point2D (T xx=0, T yy=0) | |
| template<class TT > | |
| Point2D< T > & | setFrom (const Point2D< TT > &) |
| template<class TT > | |
| void | setXY (TT xx, TT yy) |
| void | setXY (T xx, T yy) |
| Point2D< T > & | zero () |
| Point2D< T > | operator- () const |
| T & | operator[] (int idx) |
| T | operator[] (int idx) const |
| bool | operator== (const Point2D< T > &) const |
| bool | operator!= (const Point2D< T > &) const |
| Point2D< T > & | operator+= (T dist) |
| Point2D< T > & | operator*= (T factor) |
| 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 |
| bool | operator< (const Point2D< T > &crd) const |
| bool | operator> (const Point2D< T > &crd) const |
| void | swapXY () |
| T | dot (const Point2D< T > &) const |
| bool | isDefined () const |
| bool | isUdf () const |
| Point2D< T > | normalize () const |
| template<class FT > | |
| FT | abs () const |
| T | sqAbs () const |
| Squared absolute value. More... | |
| template<class FT > | |
| FT | distTo (const Point2D< T > &) const |
| T | sqDistTo (const Point2D< T > &) const |
| Squared distance. More... | |
| template<class FT > | |
| FT | angle (const Point2D< T > &from, const Point2D< T > &to) const |
| template<class FT > | |
| FT | cosAngle (const Point2D< T > &from, const Point2D< T > &to) const |
| saves the expensive acos() call More... | |
| BufferString | toString (int nrdec=-1) const |
| BufferString | toPrettyString () const |
| bool | fromString (const char *) |
| template<> | |
| BufferString | toString (int nrdec) const |
| template<> | |
| BufferString | toString (int nrdec) const |
| template<> | |
| Point2D< double > | normalize () const |
| template<> | |
| Point2D< float > | normalize () const |
Static Public Member Functions | |
| static Point2D< T > | udf () |
Public Attributes | |
| T | x_ |
| T | y_ |
2D point or vector class.
|
inline |
|
inline |
|
inline |
saves the expensive acos() call
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Squared absolute value.
|
inline |
Squared distance.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
| T Geom::Point2D< T >::x_ |
| T Geom::Point2D< T >::y_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017