OpendTect  6.6
Public Member Functions | Protected Attributes | List of all members
OffsetAzimuth Class Reference

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

Public Member Functions

 OffsetAzimuth ()
 
 OffsetAzimuth (float off, float azi)
 
int asInt () const
 
float azimuth () const
 
float distanceTo (const OffsetAzimuth &, bool sq=false) const
 
bool isAzimuthUndef () const
 
bool isOffsetUndef () const
 
float offset () const
 
bool operator!= (const OffsetAzimuth &) const
 
bool operator== (const OffsetAzimuth &) const
 
void setAzimuth (float)
 
void setFrom (int)
 
void setOffset (float)
 
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() [1/2]

OffsetAzimuth::OffsetAzimuth ( )
inline

◆ OffsetAzimuth() [2/2]

OffsetAzimuth::OffsetAzimuth ( float  off,
float  azi 
)

Member Function Documentation

◆ asInt()

int OffsetAzimuth::asInt ( ) const

◆ azimuth()

float OffsetAzimuth::azimuth ( ) const

◆ distanceTo()

float OffsetAzimuth::distanceTo ( const OffsetAzimuth ,
bool  sq = false 
) const
Note
If sq is true, the square distance is returned.

◆ isAzimuthUndef()

bool OffsetAzimuth::isAzimuthUndef ( ) const

◆ isOffsetUndef()

bool OffsetAzimuth::isOffsetUndef ( ) const

◆ offset()

float OffsetAzimuth::offset ( ) const

◆ operator!=()

bool OffsetAzimuth::operator!= ( const OffsetAzimuth ) const

◆ operator==()

bool OffsetAzimuth::operator== ( const OffsetAzimuth ) const

◆ setAzimuth()

void OffsetAzimuth::setAzimuth ( float  )

◆ setFrom()

void OffsetAzimuth::setFrom ( int  )

◆ setOffset()

void OffsetAzimuth::setOffset ( float  )

◆ srcRcvPos()

Coord OffsetAzimuth::srcRcvPos ( const Coord center,
bool  add = true 
) const
Returns
center + (or - depending on variable add) the object's offset and azimuth.

Member Data Documentation

◆ offsetazi_

int OffsetAzimuth::offsetazi_
protected

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