Keos::CDegree Class Reference

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

#include <KeosMath.h>

List of all members.

Public Member Functions

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

Protected Attributes

Real m_Deg
 Angle value in degrees.


Detailed Description

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

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

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

Definition at line 147 of file KeosMath.h.


Constructor & Destructor Documentation

Keos::CDegree::CDegree ( Real  d = 0  )  [inline, explicit]

Definition at line 154 of file KeosMath.h.

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

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

Definition at line 156 of file KeosMath.h.


Member Function Documentation

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

Definition at line 158 of file KeosMath.h.

References m_Deg.

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

Definition at line 163 of file KeosMath.h.

References m_Deg.

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

Definition at line 168 of file KeosMath.h.

References m_Deg.

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

Definition at line 174 of file KeosMath.h.

References m_Deg.

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

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

Definition at line 397 of file KeosMath.h.

References Keos::CMath::DegreesToRadians(), and m_Deg.

Referenced by Keos::CRadian::operator+(), Keos::CRadian::operator+=(), Keos::CRadian::operator-(), Keos::CRadian::operator-=(), and Keos::CRadian::operator=().

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

Definition at line 180 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 184 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 188 of file KeosMath.h.

References m_Deg.

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

Definition at line 193 of file KeosMath.h.

References m_Deg.

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

Definition at line 198 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 202 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 206 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 210 of file KeosMath.h.

References m_Deg.

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

Definition at line 215 of file KeosMath.h.

References m_Deg.

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

Definition at line 220 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 224 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 228 of file KeosMath.h.

References m_Deg.

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

Definition at line 233 of file KeosMath.h.

References CDegree(), and m_Deg.

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

Definition at line 237 of file KeosMath.h.

References m_Deg.

bool Keos::CDegree::operator< ( const CDegree d  )  const [inline]

Definition at line 243 of file KeosMath.h.

References m_Deg.

bool Keos::CDegree::operator<= ( const CDegree d  )  const [inline]

Definition at line 247 of file KeosMath.h.

References m_Deg.

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

Definition at line 251 of file KeosMath.h.

References m_Deg.

bool Keos::CDegree::operator!= ( const CDegree d  )  const [inline]

Definition at line 255 of file KeosMath.h.

References m_Deg.

bool Keos::CDegree::operator>= ( const CDegree d  )  const [inline]

Definition at line 259 of file KeosMath.h.

References m_Deg.

bool Keos::CDegree::operator> ( const CDegree d  )  const [inline]

Definition at line 263 of file KeosMath.h.

References m_Deg.


Member Data Documentation

Real Keos::CDegree::m_Deg [protected]

Angle value in degrees.

Definition at line 151 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:25 2007 for Keos by  doxygen 1.5.1-p1