OpendTect  7.0
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)
 
double abs () const
 
double distTo (const Point2D< T > &) const
 
bool isDefined () const
 
bool operator!= (const Point2D< T > &) const
 
Point2D< T > operator* (const T factor) const
 
Point2D< T > & operator*= (T factor)
 
Point2D< T > operator+ (const Point2D< T > &) const
 
Point2D< T > & operator+= (const Point2D< T > &)
 
Point2D< T > & operator+= (T dist)
 
Point2D< T > operator- ()
 
Point2D< T > operator- (const Point2D< T > &) const
 
Point2D< T > & operator-= (const Point2D< T > &)
 
Point2D< T > operator/ (const T den) const
 
Point2D< T > & operator/= (T den)
 
bool operator== (const Point2D< T > &) const
 
T & operator[] (int idx)
 
operator[] (int idx) const
 
template<class TT >
Point2D< T > scale (TT xx, TT yy) const
 
template<class TT >
Point2D< T > & setFrom (const Point2D< TT > &)
 
void setXY (T xx, T yy)
 
template<class TT >
void setXY (TT xx, TT yy)
 
sqAbs () const
 
sqDistTo (const Point2D< T > &) const
 
void swapXY ()
 
Point2D< T > & zero ()
 

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

◆ Point2D()

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

Member Function Documentation

◆ abs()

template<class T >
double Geom::Point2D< T >::abs
inline

◆ distTo()

template<class T >
double Geom::Point2D< T >::distTo ( const Point2D< T > &  pt) const
inline

◆ isDefined()

template<class T >
bool Geom::Point2D< T >::isDefined
inline

◆ operator!=()

template<class T >
bool Geom::Point2D< T >::operator!= ( const Point2D< T > &  p) const
inline

◆ operator*()

template<class T >
Point2D< T > Geom::Point2D< T >::operator* ( const T  factor) const
inline

◆ operator*=()

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

◆ operator+()

template<class T >
Point2D< T > Geom::Point2D< T >::operator+ ( const Point2D< T > &  p) const
inline

◆ operator+=() [1/2]

template<class T >
Point2D< T > & Geom::Point2D< T >::operator+= ( const Point2D< T > &  p)
inline

◆ operator+=() [2/2]

template<class T >
Point2D< T > & Geom::Point2D< T >::operator+= ( dist)
inline

◆ operator-() [1/2]

template<class T >
Point2D< T > Geom::Point2D< T >::operator-
inline

◆ operator-() [2/2]

template<class T >
Point2D< T > Geom::Point2D< T >::operator- ( const Point2D< T > &  p) const
inline

◆ operator-=()

template<class T >
Point2D< T > & Geom::Point2D< T >::operator-= ( const Point2D< T > &  p)
inline

◆ operator/()

template<class T >
Point2D< T > Geom::Point2D< T >::operator/ ( const T  den) const
inline

◆ operator/=()

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

◆ operator==()

template<class T >
bool Geom::Point2D< T >::operator== ( const Point2D< T > &  p) const
inline

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ scale()

template<class T >
template<class TT >
Point2D< T > Geom::Point2D< T >::scale ( TT  xx,
TT  yy 
) const
inline

◆ setFrom()

template<class T >
template<class TT >
Point2D< T > & Geom::Point2D< T >::setFrom ( const Point2D< TT > &  a)
inline

◆ setXY() [1/2]

template<class T >
void Geom::Point2D< T >::setXY ( xx,
yy 
)
inline

◆ setXY() [2/2]

template<class T >
template<class TT >
void Geom::Point2D< T >::setXY ( TT  xx,
TT  yy 
)
inline

◆ sqAbs()

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

◆ sqDistTo()

template<class T >
T Geom::Point2D< T >::sqDistTo ( const Point2D< T > &  pt) const
inline

◆ swapXY()

template<class T >
void Geom::Point2D< T >::swapXY
inline

◆ udf()

template<class T >
static Point2D<T> Geom::Point2D< T >::udf ( )
inlinestatic

◆ zero()

template<class T >
Point2D< T > & Geom::Point2D< T >::zero
inline

Member Data Documentation

◆ x

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

◆ y

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

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