Radian Class Reference

Description

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

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

Methods

 Radian (float r=0.0f)
 
 Radian (const Degree &d)
 
Radianoperator= (const float &f)
 
Radianoperator= (const Radian &r)
 
Radianoperator= (const Degree &d)
 
float valueDegrees () const
 Returns the value of the angle in degrees. More...
 
float valueRadians () const
 Returns the value of the angle in radians. More...
 
Radian wrap ()
 Wraps the angle in [0, 2 * PI) range. More...
 
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* (float f) const
 
Radian operator* (const Radian &f) const
 
Radianoperator*= (float f)
 
Radian operator/ (float f) const
 
Radianoperator/= (float 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
 

Method documentation

float valueDegrees ( ) const

Returns the value of the angle in degrees.

float valueRadians ( ) const

Returns the value of the angle in radians.

Radian wrap ( )

Wraps the angle in [0, 2 * PI) range.