OGRE  1.9.0
Ogre::Degree Class Reference

Wrapper class which indicates a given angle value is in Degrees. More...

#include <OgreMath.h>

Public Member Functions

 Degree (const Radian &r)
 
 Degree (Real d=0)
 
bool operator!= (const Degree &d) const
 
Degree operator* (const Degree &f) const
 
Degree operator* (Real f) const
 
Degreeoperator*= (Real f)
 
const Degreeoperator+ () const
 
Degree operator+ (const Degree &d) const
 
Degree operator+ (const Radian &r) const
 
Degreeoperator+= (const Degree &d)
 
Degreeoperator+= (const Radian &r)
 
Degree operator- () const
 
Degree operator- (const Degree &d) const
 
Degree operator- (const Radian &r) const
 
Degreeoperator-= (const Degree &d)
 
Degreeoperator-= (const Radian &r)
 
Degree operator/ (Real f) const
 
Degreeoperator/= (Real f)
 
bool operator< (const Degree &d) const
 
bool operator<= (const Degree &d) const
 
Degreeoperator= (const Degree &d)
 
Degreeoperator= (const Radian &r)
 
Degreeoperator= (const Real &f)
 
bool operator== (const Degree &d) const
 
bool operator> (const Degree &d) const
 
bool operator>= (const Degree &d) const
 
Real valueAngleUnits () const
 
Real valueDegrees () const
 
Real valueRadians () const
 

Private Attributes

Real mDeg
 

Friends

_OgreExport friend std::ostream & operator<< (std::ostream &o, const Degree &v)
 

Detailed Description

Wrapper class which indicates a given angle value is in Degrees.

Remarks
Degree values are interchangeable with Radian values, and conversions will be done automatically between them.

Definition at line 98 of file OgreMath.h.

Constructor & Destructor Documentation

◆ Degree() [1/2]

◆ Degree() [2/2]

Ogre::Degree::Degree ( const Radian & r)

Definition at line 104 of file OgreMath.h.

References mDeg, and valueDegrees().

Member Function Documentation

◆ operator!=()

bool Ogre::Degree::operator!= ( const Degree & d) const

Definition at line 132 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator*() [1/2]

Degree Ogre::Degree::operator* ( const Degree & f) const

Definition at line 124 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator*() [2/2]

Degree Ogre::Degree::operator* ( Real f) const

Definition at line 123 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator*=()

Degree & Ogre::Degree::operator*= ( Real f)

Definition at line 125 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator+() [1/3]

const Degree & Ogre::Degree::operator+ ( ) const

Definition at line 113 of file OgreMath.h.

References Degree().

◆ operator+() [2/3]

Degree Ogre::Degree::operator+ ( const Degree & d) const

Definition at line 114 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator+() [3/3]

Degree Ogre::Degree::operator+ ( const Radian & r) const

Definition at line 115 of file OgreMath.h.

References Degree(), mDeg, and Ogre::Radian::valueDegrees().

◆ operator+=() [1/2]

Degree & Ogre::Degree::operator+= ( const Degree & d)

Definition at line 116 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator+=() [2/2]

Degree & Ogre::Degree::operator+= ( const Radian & r)

Definition at line 117 of file OgreMath.h.

References Degree(), mDeg, and Ogre::Radian::valueDegrees().

◆ operator-() [1/3]

Degree Ogre::Degree::operator- ( ) const

Definition at line 118 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator-() [2/3]

Degree Ogre::Degree::operator- ( const Degree & d) const

Definition at line 119 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator-() [3/3]

Degree Ogre::Degree::operator- ( const Radian & r) const

Definition at line 120 of file OgreMath.h.

References Degree(), mDeg, and Ogre::Radian::valueDegrees().

◆ operator-=() [1/2]

Degree & Ogre::Degree::operator-= ( const Degree & d)

Definition at line 121 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator-=() [2/2]

Degree & Ogre::Degree::operator-= ( const Radian & r)

Definition at line 122 of file OgreMath.h.

References Degree(), mDeg, and Ogre::Radian::valueDegrees().

◆ operator/()

Degree Ogre::Degree::operator/ ( Real f) const

Definition at line 126 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator/=()

Degree & Ogre::Degree::operator/= ( Real f)

Definition at line 127 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator<()

bool Ogre::Degree::operator< ( const Degree & d) const

Definition at line 129 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator<=()

bool Ogre::Degree::operator<= ( const Degree & d) const

Definition at line 130 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator=() [1/3]

Degree & Ogre::Degree::operator= ( const Degree & d)

Definition at line 106 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator=() [2/3]

Degree & Ogre::Degree::operator= ( const Radian & r)

Definition at line 107 of file OgreMath.h.

References Degree(), mDeg, and Ogre::Radian::valueDegrees().

◆ operator=() [3/3]

Degree & Ogre::Degree::operator= ( const Real & f)

Definition at line 105 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator==()

bool Ogre::Degree::operator== ( const Degree & d) const

Definition at line 131 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator>()

bool Ogre::Degree::operator> ( const Degree & d) const

Definition at line 134 of file OgreMath.h.

References Degree(), and mDeg.

◆ operator>=()

bool Ogre::Degree::operator>= ( const Degree & d) const

Definition at line 133 of file OgreMath.h.

References Degree(), and mDeg.

◆ valueDegrees()

Real Ogre::Degree::valueDegrees ( ) const

Friends And Related Symbol Documentation

◆ operator<<

_OgreExport friend std::ostream & operator<< ( std::ostream & o,
const Degree & v )
friend

Definition at line 136 of file OgreMath.h.

References Degree(), and _OgreExport.

Member Data Documentation

◆ mDeg


The documentation for this class was generated from the following file: