OpenGUI::Radian Class Reference
[Types]

#include <OpenGUI_Types.h>

List of all members.


Detailed Description

Represents radians and provide some basic utility functions.

This class is used to store radian values, as well as provide some basic conversion functions.


Public Member Functions

 Radian (float radian_value=0.0f)
 Constructor initialized with radian in a float.
 Radian (const Degree &degree_value)
 Constructor initialized with a Degree.
float valueDegrees () const
 returns the current value as a float in degrees
float valueRadians () const
 returns the current value as a float in radians
const Radianoperator= (const float &radian_float)
 assignment with a radian in a float
const Radianoperator= (const Radian &radian)
 assignment with a Radian
const Radianoperator= (const Degree &degree)
 assignment with a Degree
Radian operator+ (const Radian &right) const
 addition with a Radian
Radian operator+ (const Degree &right) const
 addition with a Degree
Radianoperator+= (const Radian &right)
 addition/assignment with a Radian
Radianoperator+= (const Degree &right)
 addition/assignment with a Degree
Radian operator- ()
 inverse operator
Radian operator- (const Radian &right) const
 subtraction with a Radian
Radian operator- (const Degree &right) const
 subtraction with a Degree
Radianoperator-= (const Radian &right)
 subtraction/assignment with a Radian
Radianoperator-= (const Degree &right)
 subtraction/assignment with a Degree
bool operator== (const Radian &right) const
 Equal.
bool operator!= (const Radian &right) const
 Not Equal.
bool operator< (const Radian &right) const
 Less than.
bool operator<= (const Radian &right) const
 Less than or equal.


Constructor & Destructor Documentation

OpenGUI::Radian::Radian ( float  radian_value = 0.0f  )  [inline, explicit]

Constructor initialized with radian in a float.

OpenGUI::Radian::Radian ( const Degree degree_value  )  [inline]

Constructor initialized with a Degree.


Member Function Documentation

bool OpenGUI::Radian::operator!= ( const Radian right  )  const [inline]

Not Equal.

Radian OpenGUI::Radian::operator+ ( const Degree right  )  const [inline]

addition with a Degree

Radian OpenGUI::Radian::operator+ ( const Radian right  )  const [inline]

addition with a Radian

Radian & OpenGUI::Radian::operator+= ( const Degree right  )  [inline]

addition/assignment with a Degree

Radian& OpenGUI::Radian::operator+= ( const Radian right  )  [inline]

addition/assignment with a Radian

Radian OpenGUI::Radian::operator- ( const Degree right  )  const [inline]

subtraction with a Degree

Radian OpenGUI::Radian::operator- ( const Radian right  )  const [inline]

subtraction with a Radian

Radian OpenGUI::Radian::operator- (  )  [inline]

inverse operator

Radian & OpenGUI::Radian::operator-= ( const Degree right  )  [inline]

subtraction/assignment with a Degree

Radian& OpenGUI::Radian::operator-= ( const Radian right  )  [inline]

subtraction/assignment with a Radian

bool OpenGUI::Radian::operator< ( const Radian right  )  const [inline]

Less than.

bool OpenGUI::Radian::operator<= ( const Radian right  )  const [inline]

Less than or equal.

const Radian & OpenGUI::Radian::operator= ( const Degree degree  )  [inline]

assignment with a Degree

const Radian& OpenGUI::Radian::operator= ( const Radian radian  )  [inline]

assignment with a Radian

const Radian& OpenGUI::Radian::operator= ( const float &  radian_float  )  [inline]

assignment with a radian in a float

bool OpenGUI::Radian::operator== ( const Radian right  )  const [inline]

Equal.

float OpenGUI::Radian::valueDegrees (  )  const [inline]

returns the current value as a float in degrees

float OpenGUI::Radian::valueRadians (  )  const [inline]

returns the current value as a float in radians


The documentation for this class was generated from the following file:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Fri Jan 5 23:05:26 2007