OpendTect  6.3
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Geom::Point3D< T > Class Template Reference

3D point or vector More...

Public Member Functions

 Point3D (const Point2D< T > &, T)
 
 Point3D (T xx=0, T yy=0, T zz=0)
 
template<class TT >
Point3D< T > & setFrom (const Point3D< TT > &)
 
template<class TT >
void setXY (TT xx, TT yy)
 
void setXY (T xx, T yy)
 
void setXY (const Point2D< T > &)
 
Point2D< T > getXY () const
 
Point3D< T > & zero ()
 
Point3D< T > operator- () const
 
T & operator[] (int idx)
 
operator[] (int idx) const
 
bool operator== (const Point3D< T > &) const
 
bool operator!= (const Point3D< T > &) const
 
bool isSameAs (const Point3D< T > &pos, const Point3D< T > &eps) const
 
Point3D< T > & operator+= (T dist)
 
Point3D< T > & operator*= (T factor)
 
Point3D< T > & operator/= (T den)
 
Point3D< T > & operator+= (const Point3D< T > &)
 
Point3D< T > & operator-= (const Point3D< T > &)
 
Point3D< T > operator+ (const Point3D< T > &) const
 
Point3D< T > operator- (const Point3D< T > &) const
 
Point3D< T > operator* (const T factor) const
 
Point3D< T > operator/ (const T den) const
 
Point3D< T > scaleBy (const Point3D< T > &factor) const
 
Point3D< T > unScaleBy (const Point3D< T > &denominator) const
 
dot (const Point3D< T > &) const
 
Point3D< T > cross (const Point3D< T > &) const
 
Point3D< T > normalize () const
 Returns vector with length one. More...
 
bool isDefined () const
 
bool isUdf () const
 
template<class FT >
FT abs () const
 
sqAbs () const
 Squared absolute value. More...
 
template<class FT >
FT distTo (const Point3D< T > &) const
 
sqDistTo (const Point3D< T > &) const
 Squared distance. More...
 
template<class FT >
FT xyDistTo (const Point3D< T > &) const
 Distance in the xy plane. More...
 
xySqDistTo (const Point3D< T > &) const
 Square distance in the xy plane. More...
 
template<class FT >
FT xyDistTo (const Point2D< T > &) const
 Distance in the xy plane. More...
 
xySqDistTo (const Point2D< T > &) const
 Square distance in the xy plane. More...
 

Static Public Member Functions

static Point3D< T > udf ()
 

Public Attributes

x_
 
y_
 
z_
 

Detailed Description

template<class T>
class Geom::Point3D< T >

3D point or vector

Constructor & Destructor Documentation

template<class T >
Geom::Point3D< T >::Point3D ( const Point2D< T > &  p,
z 
)
inline
template<class T >
Geom::Point3D< T >::Point3D ( xx = 0,
yy = 0,
zz = 0 
)
inline

Member Function Documentation

template<class T >
template<class FT >
FT Geom::Point3D< T >::abs ( ) const
inline
template<class T >
Point3D< T > Geom::Point3D< T >::cross ( const Point3D< T > &  b) const
inline
template<class T >
template<class FT >
FT Geom::Point3D< T >::distTo ( const Point3D< T > &  pt) const
inline
template<class T >
T Geom::Point3D< T >::dot ( const Point3D< T > &  b) const
inline
template<class T>
Point2D<T> Geom::Point3D< T >::getXY ( ) const
inline
template<class T >
bool Geom::Point3D< T >::isDefined ( ) const
inline
template<class T >
bool Geom::Point3D< T >::isSameAs ( const Point3D< T > &  pos,
const Point3D< T > &  eps 
) const
inline
template<class T>
bool Geom::Point3D< T >::isUdf ( ) const
inline
template<class T >
Point3D< T > Geom::Point3D< T >::normalize ( ) const
inline

Returns vector with length one.

template<class T >
bool Geom::Point3D< T >::operator!= ( const Point3D< T > &  b) const
inline
template<class T >
Point3D< T > Geom::Point3D< T >::operator* ( const T  factor) const
inline
template<class T >
Point3D< T > & Geom::Point3D< T >::operator*= ( factor)
inline
template<class T >
Point3D< T > Geom::Point3D< T >::operator+ ( const Point3D< T > &  p) const
inline
template<class T >
Point3D< T > & Geom::Point3D< T >::operator+= ( dist)
inline
template<class T >
Point3D< T > & Geom::Point3D< T >::operator+= ( const Point3D< T > &  p)
inline
template<class T >
Point3D< T > Geom::Point3D< T >::operator- ( ) const
inline
template<class T >
Point3D< T > Geom::Point3D< T >::operator- ( const Point3D< T > &  p) const
inline
template<class T >
Point3D< T > & Geom::Point3D< T >::operator-= ( const Point3D< T > &  p)
inline
template<class T >
Point3D< T > Geom::Point3D< T >::operator/ ( const T  den) const
inline
template<class T >
Point3D< T > & Geom::Point3D< T >::operator/= ( den)
inline
template<class T >
bool Geom::Point3D< T >::operator== ( const Point3D< T > &  b) const
inline
template<class T >
T & Geom::Point3D< T >::operator[] ( int  idx)
inline
template<class T >
T Geom::Point3D< T >::operator[] ( int  idx) const
inline
template<class T >
Point3D< T > Geom::Point3D< T >::scaleBy ( const Point3D< T > &  factor) const
inline
template<class T >
template<class TT >
Point3D< T > & Geom::Point3D< T >::setFrom ( const Point3D< TT > &  a)
inline
template<class T >
template<class TT >
void Geom::Point3D< T >::setXY ( TT  xx,
TT  yy 
)
inline
template<class T >
void Geom::Point3D< T >::setXY ( xx,
yy 
)
inline
template<class T >
void Geom::Point3D< T >::setXY ( const Point2D< T > &  p)
inline
template<class T >
T Geom::Point3D< T >::sqAbs ( ) const
inline

Squared absolute value.

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

Squared distance.

template<class T >
Point3D< T > Geom::Point3D< T >::udf ( )
inlinestatic
template<class T >
Point3D< T > Geom::Point3D< T >::unScaleBy ( const Point3D< T > &  denominator) const
inline
template<class T >
template<class FT >
FT Geom::Point3D< T >::xyDistTo ( const Point3D< T > &  pt) const
inline

Distance in the xy plane.

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

Distance in the xy plane.

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

Square distance in the xy plane.

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

Square distance in the xy plane.

template<class T >
Point3D< T > & Geom::Point3D< T >::zero ( )
inline

Member Data Documentation

template<class T>
T Geom::Point3D< T >::x_
template<class T>
T Geom::Point3D< T >::y_
template<class T>
T Geom::Point3D< T >::z_

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