Support Forum       G3D Web Page     
Public Member Functions | Protected Attributes | Friends | List of all members
G3D::CompassDelta Class Reference

Oriented angle measure on a compass; the difference of two CompassDirections. More...

Public Member Functions

 CompassDelta (float degrees=0)
 
 CompassDelta (const Any &a)
 
CompassDelta abs () const
 
float compassDegrees () const
 The angle measure of this delta, in degrees on the compass. More...
 
bool operator!= (CompassDelta c) const
 
CompassDelta operator* (float s) const
 
CompassDeltaoperator*= (float s)
 
CompassDelta operator+ (CompassDelta c) const
 
CompassDeltaoperator+= (CompassDelta c)
 
CompassDelta operator- (CompassDelta c) const
 
CompassDelta operator- () const
 
CompassDeltaoperator-= (CompassDelta c)
 
CompassDelta operator/ (float s) const
 
CompassDeltaoperator/= (float s)
 
bool operator< (CompassDelta c) const
 
bool operator<= (CompassDelta c) const
 
bool operator== (CompassDelta c) const
 
bool operator> (CompassDelta c) const
 
bool operator>= (CompassDelta c) const
 
Any toAny () const
 
float zxRadians () const
 The angle measure of this delta, in radians in the ZX plane (i.e., standard G3D yaw). More...
 

Protected Attributes

float m_angleDegrees
 

Friends

class CompassDirection
 

Detailed Description

Oriented angle measure on a compass; the difference of two CompassDirections.

When relative to a heading, this is a bearing.

See also
CompassDirection,
CompassBearing

Constructor & Destructor Documentation

◆ CompassDelta() [1/2]

G3D::CompassDelta::CompassDelta ( float  degrees = 0)
inlineexplicit

◆ CompassDelta() [2/2]

G3D::CompassDelta::CompassDelta ( const Any a)

Member Function Documentation

◆ abs()

CompassDelta G3D::CompassDelta::abs ( ) const
inline

◆ compassDegrees()

float G3D::CompassDelta::compassDegrees ( ) const
inline

The angle measure of this delta, in degrees on the compass.

◆ operator!=()

bool G3D::CompassDelta::operator!= ( CompassDelta  c) const
inline

◆ operator*()

CompassDelta G3D::CompassDelta::operator* ( float  s) const
inline

◆ operator*=()

CompassDelta& G3D::CompassDelta::operator*= ( float  s)
inline

◆ operator+()

CompassDelta G3D::CompassDelta::operator+ ( CompassDelta  c) const
inline

◆ operator+=()

CompassDelta& G3D::CompassDelta::operator+= ( CompassDelta  c)
inline

◆ operator-() [1/2]

CompassDelta G3D::CompassDelta::operator- ( CompassDelta  c) const
inline

◆ operator-() [2/2]

CompassDelta G3D::CompassDelta::operator- ( ) const
inline

◆ operator-=()

CompassDelta& G3D::CompassDelta::operator-= ( CompassDelta  c)
inline

◆ operator/()

CompassDelta G3D::CompassDelta::operator/ ( float  s) const
inline

◆ operator/=()

CompassDelta& G3D::CompassDelta::operator/= ( float  s)
inline

◆ operator<()

bool G3D::CompassDelta::operator< ( CompassDelta  c) const
inline

◆ operator<=()

bool G3D::CompassDelta::operator<= ( CompassDelta  c) const
inline

◆ operator==()

bool G3D::CompassDelta::operator== ( CompassDelta  c) const
inline

◆ operator>()

bool G3D::CompassDelta::operator> ( CompassDelta  c) const
inline

◆ operator>=()

bool G3D::CompassDelta::operator>= ( CompassDelta  c) const
inline

◆ toAny()

Any G3D::CompassDelta::toAny ( ) const

◆ zxRadians()

float G3D::CompassDelta::zxRadians ( ) const
inline

The angle measure of this delta, in radians in the ZX plane (i.e., standard G3D yaw).

Friends And Related Function Documentation

◆ CompassDirection

friend class CompassDirection
friend

Member Data Documentation

◆ m_angleDegrees

float G3D::CompassDelta::m_angleDegrees
protected

documentation generated on Wed Nov 24 2021 08:01:54 using doxygen 1.8.15