OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Geom::Point2D< T > Class Template Reference

Basic point class. More...

Inheritance diagram for Geom::Point2D< T >:
[legend]

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- ()
 
T & operator[] (int idx)
 
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
 
void swapXY ()
 
bool isDefined () const
 
double abs () const
 
sqAbs () const
 
double distTo (const Point2D< T > &) const
 
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

Member Function Documentation

template<class T >
double Geom::Point2D< T >::abs ( ) const
inline
template<class T>
double Geom::Point2D< T >::distTo ( const Point2D< T > &  pt) const
inline
template<class T >
bool Geom::Point2D< T >::isDefined ( ) const
inline
template<class T>
bool Geom::Point2D< T >::operator!= ( const Point2D< T > &  p) const
inline
template<class T>
Point2D< T > Geom::Point2D< T >::operator* ( const T  factor) const
inline
template<class T>
Point2D< T > & Geom::Point2D< T >::operator*= ( factor)
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+= ( dist)
inline
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
template<class T>
Point2D< T > & Geom::Point2D< T >::operator/= ( den)
inline
template<class T>
bool Geom::Point2D< T >::operator== ( const Point2D< T > &  p) const
inline
template<class T >
T & Geom::Point2D< T >::operator[] ( int  idx)
inline
template<class T >
T Geom::Point2D< T >::operator[] ( int  idx) const
inline
template<class T >
template<class TT >
Point2D< T > & Geom::Point2D< T >::setFrom ( const Point2D< TT > &  a)
inline
template<class T >
template<class TT >
void Geom::Point2D< T >::setXY ( TT  xx,
TT  yy 
)
inline
template<class T>
void Geom::Point2D< T >::setXY ( xx,
yy 
)
inline
template<class T >
T Geom::Point2D< T >::sqAbs ( ) const
inline
template<class T>
T Geom::Point2D< T >::sqDistTo ( const Point2D< T > &  pt) const
inline
template<class T >
void Geom::Point2D< T >::swapXY ( )
inline
template<class T>
static Point2D<T> Geom::Point2D< T >::udf ( )
inlinestatic
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

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019