OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
OffsetAzimuth Class Reference

Public Member Functions

 OffsetAzimuth ()
 
 OffsetAzimuth (float off, float azi)
 
bool operator== (const OffsetAzimuth &) const
 
bool operator!= (const OffsetAzimuth &) const
 
int asInt () const
 
void setFrom (int)
 
float offset () const
 
float azimuth () const
 
bool isAzimuthUndef () const
 
bool isOffsetUndef () const
 
void setOffset (float)
 
void setAzimuth (float)
 
float distanceTo (const OffsetAzimuth &, bool sq=false) const
 
Coord srcRcvPos (const Coord &center, bool add=true) const
 

Protected Attributes

int offsetazi_
 

Detailed Description

Stores offset and azimuth as an int, wich makes it easy to compare them without having to think of epsilons when comparing.

The offset has a precision of 0.1 meter and have the range of -419430 and 419430 meters. The azimuth has a about 1.5 bins per degree (511 bins per full circle).

Constructor & Destructor Documentation

OffsetAzimuth::OffsetAzimuth ( )
inline
OffsetAzimuth::OffsetAzimuth ( float  off,
float  azi 
)

Member Function Documentation

int OffsetAzimuth::asInt ( ) const
float OffsetAzimuth::azimuth ( ) const
float OffsetAzimuth::distanceTo ( const OffsetAzimuth ,
bool  sq = false 
) const
bool OffsetAzimuth::isAzimuthUndef ( ) const
bool OffsetAzimuth::isOffsetUndef ( ) const
float OffsetAzimuth::offset ( ) const
bool OffsetAzimuth::operator!= ( const OffsetAzimuth ) const
bool OffsetAzimuth::operator== ( const OffsetAzimuth ) const
void OffsetAzimuth::setAzimuth ( float  )
void OffsetAzimuth::setFrom ( int  )
void OffsetAzimuth::setOffset ( float  )
Coord OffsetAzimuth::srcRcvPos ( const Coord center,
bool  add = true 
) const

sq is true, the square distance is returned.

Returns
center + (or - depending on variable add) the object's offset and azimuth.

Member Data Documentation

int OffsetAzimuth::offsetazi_
protected

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