OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::Radian Class Reference

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

#include <OgreMath.h>

Public Member Functions

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

Private Attributes

Real mRad
 

Friends

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

Detailed Description

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

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

Definition at line 46 of file OgreMath.h.

Constructor & Destructor Documentation

Ogre::Radian::Radian ( Real  r = 0)
inlineexplicit

Definition at line 51 of file OgreMath.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

Member Function Documentation

bool Ogre::Radian::operator!= ( const Radian r) const
inline

Definition at line 80 of file OgreMath.h.

References mRad.

Radian Ogre::Radian::operator* ( Real  f) const
inline

Definition at line 71 of file OgreMath.h.

References mRad, and Radian().

Radian Ogre::Radian::operator* ( const Radian f) const
inline

Definition at line 72 of file OgreMath.h.

References mRad, and Radian().

Radian& Ogre::Radian::operator*= ( Real  f)
inline

Definition at line 73 of file OgreMath.h.

References mRad.

const Radian& Ogre::Radian::operator+ ( ) const
inline

Definition at line 61 of file OgreMath.h.

Radian Ogre::Radian::operator+ ( const Radian r) const
inline

Definition at line 62 of file OgreMath.h.

References mRad, and Radian().

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

Definition at line 64 of file OgreMath.h.

References mRad.

Radian Ogre::Radian::operator- ( ) const
inline

Definition at line 66 of file OgreMath.h.

References mRad, and Radian().

Radian Ogre::Radian::operator- ( const Radian r) const
inline

Definition at line 67 of file OgreMath.h.

References mRad, and Radian().

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

Definition at line 69 of file OgreMath.h.

References mRad.

Radian Ogre::Radian::operator/ ( Real  f) const
inline

Definition at line 74 of file OgreMath.h.

References mRad, and Radian().

Radian& Ogre::Radian::operator/= ( Real  f)
inline

Definition at line 75 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator< ( const Radian r) const
inline

Definition at line 77 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator<= ( const Radian r) const
inline

Definition at line 78 of file OgreMath.h.

References mRad.

Radian& Ogre::Radian::operator= ( const Real f)
inline

Definition at line 53 of file OgreMath.h.

References mRad.

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

Definition at line 54 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator== ( const Radian r) const
inline

Definition at line 79 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator> ( const Radian r) const
inline

Definition at line 82 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator>= ( const Radian r) const
inline

Definition at line 81 of file OgreMath.h.

References mRad.

Friends And Related Function Documentation

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

Definition at line 85 of file OgreMath.h.

Member Data Documentation


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