OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Geom::Point2D< T > Class Template Reference

Basic point class. More...

#include <geometry.h>

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

Public Member Functions

 Point2D (const Point2D< T > &)
 
 Point2D (T xx=0, T yy=0)
 
virtual ~Point2D ()
 
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)
 
Point2D< T > & operator= (const Point2D< T > &)
 
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

T & x
 
x_
 
T & y
 
y_
 

Detailed Description

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

Basic point class.

<>

Constructor & Destructor Documentation

◆ Point2D() [1/2]

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

◆ Point2D() [2/2]

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

◆ ~Point2D()

template<class T >
Geom::Point2D< T >::~Point2D ( )
inlinevirtual

Member Function Documentation

◆ abs()

template<class T >
double Geom::Point2D< T >::abs ( ) const
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 ( ) const
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*= ( T 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+= ( T 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/= ( T den)
inline

◆ operator=()

template<class T >
Point2D< T > & Geom::Point2D< T >::operator= ( const Point2D< T > & pt)
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 ( T xx,
T 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 ( ) const
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

◆ x_

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

◆ y

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

◆ y_

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

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