Keos::CRadian Class Reference

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

#include <KeosMath.h>

List of all members.

Public Member Functions

 CRadian (Real r=0)
 CRadian (const CDegree &d)
const CRadianoperator= (const Real &f)
const CRadianoperator= (const CRadian &r)
const CRadianoperator= (const CDegree &d)
Real valueDegrees () const
Real valueRadians () const
CRadian operator+ (const CRadian &r) const
CRadian operator+ (const CDegree &d) const
CRadianoperator+= (const CRadian &r)
CRadianoperator+= (const CDegree &d)
CRadian operator- ()
CRadian operator- (const CRadian &r) const
CRadian operator- (const CDegree &d) const
CRadianoperator-= (const CRadian &r)
CRadianoperator-= (const CDegree &d)
CRadian operator * (Real f) const
CRadian operator * (const CRadian &f) const
CRadianoperator *= (Real f)
CRadian operator/ (Real f) const
CRadianoperator/= (Real f)
bool operator< (const CRadian &r) const
bool operator<= (const CRadian &r) const
bool operator== (const CRadian &r) const
bool operator!= (const CRadian &r) const
bool operator>= (const CRadian &r) const
bool operator> (const CRadian &r) const

Protected Attributes

Real m_Rad
 Angle value in radians.


Detailed Description

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

CRadian values are interchangeable with CDegree values, and conversions will be done automatically between them.

Note:
Code copied from Ogre3D (http://www.ogre3d.org)

Definition at line 37 of file KeosMath.h.


Constructor & Destructor Documentation

Keos::CRadian::CRadian ( Real  r = 0  )  [inline]

Definition at line 45 of file KeosMath.h.

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

Keos::CRadian::CRadian ( const CDegree d  )  [inline]

Definition at line 354 of file KeosMath.h.


Member Function Documentation

const CRadian& Keos::CRadian::operator= ( const Real f  )  [inline]

Definition at line 48 of file KeosMath.h.

References m_Rad.

const CRadian& Keos::CRadian::operator= ( const CRadian r  )  [inline]

Definition at line 53 of file KeosMath.h.

References m_Rad.

const CRadian & Keos::CRadian::operator= ( const CDegree d  )  [inline]

Definition at line 358 of file KeosMath.h.

References m_Rad, and Keos::CDegree::valueRadians().

Real Keos::CRadian::valueDegrees (  )  const [inline]

Definition at line 391 of file KeosMath.h.

References m_Rad, and Keos::CMath::RadiansToDegrees().

Referenced by Keos::COGLRenderSystem::SetLight().

Real Keos::CRadian::valueRadians (  )  const [inline]

Definition at line 61 of file KeosMath.h.

References m_Rad.

Referenced by Keos::operator *(), Keos::operator/(), and Keos::CD3D9RenderSystem::SetLight().

CRadian Keos::CRadian::operator+ ( const CRadian r  )  const [inline]

Definition at line 66 of file KeosMath.h.

References CRadian(), and m_Rad.

CRadian Keos::CRadian::operator+ ( const CDegree d  )  const [inline]

Definition at line 365 of file KeosMath.h.

References CRadian(), m_Rad, and Keos::CDegree::valueRadians().

CRadian& Keos::CRadian::operator+= ( const CRadian r  )  [inline]

Definition at line 71 of file KeosMath.h.

References m_Rad.

CRadian & Keos::CRadian::operator+= ( const CDegree d  )  [inline]

Definition at line 371 of file KeosMath.h.

References m_Rad, and Keos::CDegree::valueRadians().

CRadian Keos::CRadian::operator- (  )  [inline]

Definition at line 77 of file KeosMath.h.

References CRadian(), and m_Rad.

CRadian Keos::CRadian::operator- ( const CRadian r  )  const [inline]

Definition at line 81 of file KeosMath.h.

References CRadian(), and m_Rad.

CRadian Keos::CRadian::operator- ( const CDegree d  )  const [inline]

Definition at line 378 of file KeosMath.h.

References CRadian(), m_Rad, and Keos::CDegree::valueRadians().

CRadian& Keos::CRadian::operator-= ( const CRadian r  )  [inline]

Definition at line 86 of file KeosMath.h.

References m_Rad.

CRadian & Keos::CRadian::operator-= ( const CDegree d  )  [inline]

Definition at line 384 of file KeosMath.h.

References m_Rad, and Keos::CDegree::valueRadians().

CRadian Keos::CRadian::operator * ( Real  f  )  const [inline]

Definition at line 92 of file KeosMath.h.

References CRadian(), and m_Rad.

CRadian Keos::CRadian::operator * ( const CRadian f  )  const [inline]

Definition at line 96 of file KeosMath.h.

References CRadian(), and m_Rad.

CRadian& Keos::CRadian::operator *= ( Real  f  )  [inline]

Definition at line 100 of file KeosMath.h.

References m_Rad.

CRadian Keos::CRadian::operator/ ( Real  f  )  const [inline]

Definition at line 105 of file KeosMath.h.

References CRadian(), and m_Rad.

CRadian& Keos::CRadian::operator/= ( Real  f  )  [inline]

Definition at line 109 of file KeosMath.h.

References m_Rad.

bool Keos::CRadian::operator< ( const CRadian r  )  const [inline]

Definition at line 115 of file KeosMath.h.

References m_Rad.

bool Keos::CRadian::operator<= ( const CRadian r  )  const [inline]

Definition at line 119 of file KeosMath.h.

References m_Rad.

bool Keos::CRadian::operator== ( const CRadian r  )  const [inline]

Definition at line 123 of file KeosMath.h.

References m_Rad.

bool Keos::CRadian::operator!= ( const CRadian r  )  const [inline]

Definition at line 127 of file KeosMath.h.

References m_Rad.

bool Keos::CRadian::operator>= ( const CRadian r  )  const [inline]

Definition at line 131 of file KeosMath.h.

References m_Rad.

bool Keos::CRadian::operator> ( const CRadian r  )  const [inline]

Definition at line 135 of file KeosMath.h.

References m_Rad.


Member Data Documentation

Real Keos::CRadian::m_Rad [protected]

Angle value in radians.

Definition at line 42 of file KeosMath.h.

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


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 14:29:24 2007 for Keos by  doxygen 1.5.1-p1