OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Coord3 Class Reference

A cartesian coordinate in 3D space. More...

Inheritance diagram for Coord3:
[legend]

Public Member Functions

 Coord3 ()
 
 Coord3 (const Coord &a, OrdType z_)
 
 Coord3 (const Coord3 &xyz)
 
 Coord3 (OrdType x_, OrdType y_, OrdType z_)
 
DistType abs () const
 
Coordcoord ()
 
const Coordcoord () const
 
Coord3 cross (const Coord3 &) const
 
DistType distTo (const Coord3 &) const
 
DistType dot (const Coord3 &) const
 
bool fromString (const char *)
 
bool isDefined () const
 
bool isSameAs (const Coord3 &, const Coord3 &) const
 
bool isUdf () const
 
Coord3 normalize () const
 
bool operator!= (const Coord3 &) const
 
Coord3 operator* (double) const
 
Coord3operator*= (double)
 
Coord3 operator+ (const Coord3 &) const
 
Coord3operator+= (const Coord3 &)
 
Coord3 operator- () const
 
Coord3 operator- (const Coord3 &) const
 
Coord3operator-= (const Coord3 &)
 
Coord3 operator/ (double) const
 
Coord3operator/= (double)
 
bool operator== (const Coord3 &) const
 
OrdTypeoperator[] (int idx)
 
OrdType operator[] (int idx) const
 
Coord3 scaleBy (const Coord3 &) const
 
DistType sqAbs () const
 
DistType sqDistTo (const Coord3 &) const
 
const char * toString () const
 
Coord3 unScaleBy (const Coord3 &) const
 
- Public Member Functions inherited from Coord
 Coord ()
 
 Coord (const Geom::Point2D< OrdType > &p)
 
 Coord (OrdType cx, OrdType cy)
 
DistType angle (const Coord &from, const Coord &to) const
 
DistType cosAngle (const Coord &from, const Coord &to) const
 saves the expensive acos() call More...
 
OrdType dot (const Coord &) const
 
bool fromString (const char *)
 
DistType horDistTo (const Coord &) const
 
bool isUdf () const
 
Coord normalize () const
 
bool operator!= (const Coord &crd) const
 
bool operator< (const Coord &crd) const
 
bool operator== (const Coord &crd) const
 
bool operator> (const Coord &crd) const
 
DistType sqHorDistTo (const Coord &) const
 saves the expensive sqrt() call More...
 
const char * toPrettyString (int nrdec=2) const
 
const char * toString () const
 
- Public Member Functions inherited from Geom::Point2D< Pos::Ordinate_Type >
 Point2D (Pos::Ordinate_Type xx=0, Pos::Ordinate_Type yy=0)
 
double abs () const
 
double distTo (const Point2D< Pos::Ordinate_Type > &) const
 
bool isDefined () const
 
bool operator!= (const Point2D< Pos::Ordinate_Type > &) const
 
Point2D< Pos::Ordinate_Typeoperator* (const Pos::Ordinate_Type factor) const
 
Point2D< Pos::Ordinate_Type > & operator*= (Pos::Ordinate_Type factor)
 
Point2D< Pos::Ordinate_Typeoperator+ (const Point2D< Pos::Ordinate_Type > &) const
 
Point2D< Pos::Ordinate_Type > & operator+= (const Point2D< Pos::Ordinate_Type > &)
 
Point2D< Pos::Ordinate_Type > & operator+= (Pos::Ordinate_Type dist)
 
Point2D< Pos::Ordinate_Typeoperator- ()
 
Point2D< Pos::Ordinate_Typeoperator- (const Point2D< Pos::Ordinate_Type > &) const
 
Point2D< Pos::Ordinate_Type > & operator-= (const Point2D< Pos::Ordinate_Type > &)
 
Point2D< Pos::Ordinate_Typeoperator/ (const Pos::Ordinate_Type den) const
 
Point2D< Pos::Ordinate_Type > & operator/= (Pos::Ordinate_Type den)
 
bool operator== (const Point2D< Pos::Ordinate_Type > &) const
 
Pos::Ordinate_Typeoperator[] (int idx)
 
Pos::Ordinate_Type operator[] (int idx) const
 
Point2D< Pos::Ordinate_Typescale (TT xx, TT yy) const
 
Point2D< Pos::Ordinate_Type > & setFrom (const Point2D< TT > &)
 
void setXY (Pos::Ordinate_Type xx, Pos::Ordinate_Type yy)
 
void setXY (TT xx, TT yy)
 
Pos::Ordinate_Type sqAbs () const
 
Pos::Ordinate_Type sqDistTo (const Point2D< Pos::Ordinate_Type > &) const
 
void swapXY ()
 
Point2D< Pos::Ordinate_Type > & zero ()
 

Static Public Member Functions

static const Coord3udf ()
 
- Static Public Member Functions inherited from Coord
static const Coordudf ()
 
- Static Public Member Functions inherited from Geom::Point2D< Pos::Ordinate_Type >
static Point2D< Pos::Ordinate_Typeudf ()
 

Public Attributes

OrdType z
 
- Public Attributes inherited from Geom::Point2D< Pos::Ordinate_Type >
Pos::Ordinate_Type x
 
Pos::Ordinate_Type y
 

Additional Inherited Members

- Public Types inherited from Coord
typedef Pos::Distance_Type DistType
 
typedef Pos::Ordinate_Type OrdType
 

Detailed Description

A cartesian coordinate in 3D space.

<>

Constructor & Destructor Documentation

◆ Coord3() [1/4]

Coord3::Coord3 ( )
inline

◆ Coord3() [2/4]

Coord3::Coord3 ( const Coord a,
OrdType  z_ 
)
inline

◆ Coord3() [3/4]

Coord3::Coord3 ( const Coord3 xyz)
inline

◆ Coord3() [4/4]

Coord3::Coord3 ( OrdType  x_,
OrdType  y_,
OrdType  z_ 
)
inline

Member Function Documentation

◆ abs()

DistType Coord3::abs ( ) const

◆ coord() [1/2]

Coord& Coord3::coord ( )
inline

◆ coord() [2/2]

const Coord& Coord3::coord ( ) const
inline

◆ cross()

Coord3 Coord3::cross ( const Coord3 b) const
inline

◆ distTo()

DistType Coord3::distTo ( const Coord3 ) const

◆ dot()

Coord::DistType Coord3::dot ( const Coord3 b) const
inline

◆ fromString()

bool Coord3::fromString ( const char *  )

◆ isDefined()

bool Coord3::isDefined ( ) const
inline

◆ isSameAs()

bool Coord3::isSameAs ( const Coord3 ,
const Coord3  
) const

◆ isUdf()

bool Coord3::isUdf ( ) const
inline

◆ normalize()

Coord3 Coord3::normalize ( ) const
inline

◆ operator!=()

bool Coord3::operator!= ( const Coord3 b) const
inline

◆ operator*()

Coord3 Coord3::operator* ( double  factor) const
inline

◆ operator*=()

Coord3 & Coord3::operator*= ( double  factor)
inline

◆ operator+()

Coord3 Coord3::operator+ ( const Coord3 p) const
inline

◆ operator+=()

Coord3 & Coord3::operator+= ( const Coord3 p)
inline

◆ operator-() [1/2]

Coord3 Coord3::operator- ( ) const
inline

◆ operator-() [2/2]

Coord3 Coord3::operator- ( const Coord3 p) const
inline

◆ operator-=()

Coord3 & Coord3::operator-= ( const Coord3 p)
inline

◆ operator/()

Coord3 Coord3::operator/ ( double  denominator) const
inline

◆ operator/=()

Coord3 & Coord3::operator/= ( double  denominator)
inline

◆ operator==()

bool Coord3::operator== ( const Coord3 b) const
inline

◆ operator[]() [1/2]

OrdType& Coord3::operator[] ( int  idx)
inline

◆ operator[]() [2/2]

OrdType Coord3::operator[] ( int  idx) const
inline

◆ scaleBy()

Coord3 Coord3::scaleBy ( const Coord3 factor) const
inline

◆ sqAbs()

DistType Coord3::sqAbs ( ) const

◆ sqDistTo()

DistType Coord3::sqDistTo ( const Coord3 ) const

◆ toString()

const char* Coord3::toString ( ) const

◆ udf()

static const Coord3& Coord3::udf ( )
static

◆ unScaleBy()

Coord3 Coord3::unScaleBy ( const Coord3 denominator) const
inline

Member Data Documentation

◆ z

OrdType Coord3::z

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