Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::Radian Class Reference

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

#include <OgreMath.h>

List of all members.

Public Methods

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

Private Attributes

Real mRad


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 37 of file OgreMath.h.


Constructor & Destructor Documentation

Ogre::Radian::Radian Real    r = 0 [explicit]
 

Definition at line 42 of file OgreMath.h.

References mRad, and Ogre::Real.

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

Ogre::Radian::Radian const Degree   d
 

Definition at line 135 of file OgreMath.h.


Member Function Documentation

Radian Ogre::Radian::operator * const Radian &    f const
 

Definition at line 62 of file OgreMath.h.

References mRad, and Radian().

Radian Ogre::Radian::operator * Real    f const
 

Definition at line 61 of file OgreMath.h.

References mRad, Radian(), and Ogre::Real.

Radian& Ogre::Radian::operator *= Real    f
 

Definition at line 63 of file OgreMath.h.

References mRad, and Ogre::Real.

bool Ogre::Radian::operator!= const Radian &    r const
 

Definition at line 70 of file OgreMath.h.

References mRad.

Radian Ogre::Radian::operator+ const Degree   d const
 

Definition at line 140 of file OgreMath.h.

References mRad, Radian(), and Ogre::Degree::valueRadians().

Radian Ogre::Radian::operator+ const Radian &    r const
 

Definition at line 52 of file OgreMath.h.

References mRad, and Radian().

Radian & Ogre::Radian::operator+= const Degree   d
 

Definition at line 143 of file OgreMath.h.

References mRad, and Ogre::Degree::valueRadians().

Radian& Ogre::Radian::operator+= const Radian &    r
 

Definition at line 54 of file OgreMath.h.

References mRad.

Radian Ogre::Radian::operator- const Degree   d const
 

Definition at line 147 of file OgreMath.h.

References mRad, Radian(), and Ogre::Degree::valueRadians().

Radian Ogre::Radian::operator- const Radian &    r const
 

Definition at line 57 of file OgreMath.h.

References mRad, and Radian().

Radian Ogre::Radian::operator-  
 

Definition at line 56 of file OgreMath.h.

References mRad, and Radian().

Radian & Ogre::Radian::operator-= const Degree   d
 

Definition at line 150 of file OgreMath.h.

References mRad, and Ogre::Degree::valueRadians().

Radian& Ogre::Radian::operator-= const Radian &    r
 

Definition at line 59 of file OgreMath.h.

References mRad.

Radian Ogre::Radian::operator/ Real    f const
 

Definition at line 64 of file OgreMath.h.

References mRad, Radian(), and Ogre::Real.

Radian& Ogre::Radian::operator/= Real    f
 

Definition at line 65 of file OgreMath.h.

References mRad, and Ogre::Real.

bool Ogre::Radian::operator< const Radian &    r const
 

Definition at line 67 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator<= const Radian &    r const
 

Definition at line 68 of file OgreMath.h.

References mRad.

const Radian & Ogre::Radian::operator= const Degree   d
 

Definition at line 137 of file OgreMath.h.

References mRad, and Ogre::Degree::valueRadians().

const Radian& Ogre::Radian::operator= const Radian &    r
 

Definition at line 45 of file OgreMath.h.

References mRad.

const Radian& Ogre::Radian::operator= const Real   f
 

Definition at line 44 of file OgreMath.h.

References mRad, and Ogre::Real.

bool Ogre::Radian::operator== const Radian &    r const
 

Definition at line 69 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator> const Radian &    r const
 

Definition at line 72 of file OgreMath.h.

References mRad.

bool Ogre::Radian::operator>= const Radian &    r const
 

Definition at line 71 of file OgreMath.h.

References mRad.

Real Ogre::Radian::valueAngleUnits   const
 

Definition at line 432 of file OgreMath.h.

References mRad, and Ogre::Real.

Referenced by Ogre::StringConverter::toString().

Real Ogre::Radian::valueDegrees   const
 

Definition at line 427 of file OgreMath.h.

References mRad, and Ogre::Real.

Referenced by Ogre::Degree::operator+(), Ogre::Degree::operator+=(), Ogre::Degree::operator-(), Ogre::Degree::operator-=(), Ogre::operator<<(), Ogre::Degree::operator=(), Ogre::GLRenderSystem::setGLLight(), and Ogre::MaterialSerializer::writeTextureUnit().

Real Ogre::Radian::valueRadians   const
 

Definition at line 49 of file OgreMath.h.

References mRad, and Ogre::Real.

Referenced by Ogre::Skeleton::_dumpContents(), Ogre::Math::Abs(), Ogre::Math::Cos(), Ogre::Quaternion::Exp(), Ogre::Quaternion::Log(), Ogre::operator *(), Ogre::operator/(), Ogre::D3D9RenderSystem::setD3D9Light(), Ogre::D3DRenderSystem::setD3DLight(), Ogre::Math::Sign(), Ogre::Math::Sin(), Ogre::Quaternion::Slerp(), Ogre::Quaternion::SlerpExtraSpins(), Ogre::Math::Sqrt(), and Ogre::Math::Tan().


Member Data Documentation

Real Ogre::Radian::mRad [private]
 

Definition at line 39 of file OgreMath.h.

Referenced by operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), Radian(), valueAngleUnits(), valueDegrees(), and valueRadians().


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

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:27 2004