ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
It defines the basic type CDegrees, used to store an angle value in degrees. More...
#include <angles.h>
Public Member Functions | |
CDegrees () | |
Class constructor It initializes m_fValue to 0 degrees. | |
CDegrees (Real f_value) | |
Class constructor It initializes m_fValue to the passed value. | |
void | FromValueInRadians (Real f_value) |
Sets the value from a value in radians It sets m_fValue (which is in degrees) converting from the passed value in radians. | |
void | FromValueInAseba (SInt16 n_value) |
Sets the value from a value in Aseba format It sets m_fValue (which is in degrees) converting from the passed value in Aseba format. | |
Real | GetValue () const |
Returns the value in degrees. | |
void | SetValue (Real f_value) |
Sets the value in degrees. | |
CDegrees & | SignedNormalize () |
Normalizes the value in the range [-180:180]. | |
CDegrees & | UnsignedNormalize () |
Normalizes the value in the range [0:360]. | |
CDegrees & | operator+ () |
CDegrees | operator- () const |
CDegrees & | operator+= (const CDegrees &c_degrees) |
CDegrees & | operator-= (const CDegrees &c_degrees) |
CDegrees & | operator*= (Real f_value) |
CDegrees & | operator/= (Real f_value) |
CDegrees | operator+ (const CDegrees &c_degrees) const |
CDegrees | operator- (const CDegrees &c_degrees) const |
CDegrees | operator* (Real f_value) const |
Real | operator/ (const CDegrees &c_degrees) const |
CDegrees | operator/ (Real f_value) const |
bool | operator< (const CDegrees &c_degrees) const |
bool | operator<= (const CDegrees &c_degrees) const |
bool | operator> (const CDegrees &c_degrees) const |
bool | operator>= (const CDegrees &c_degrees) const |
bool | operator== (const CDegrees &c_degrees) const |
bool | operator!= (const CDegrees &c_degrees) const |
Friends | |
CDegrees | operator* (Real f_value, const CDegrees &c_degrees) |
CRadians | ToRadians (const CDegrees &c_degrees) |
Converts this object to CRadians. | |
std::ostream & | operator<< (std::ostream &c_os, const CDegrees &c_degrees) |
std::istream & | operator>> (std::istream &is, CDegrees &c_degrees) |
It defines the basic type CDegrees, used to store an angle value in degrees.
argos::CDegrees::CDegrees | ( | ) | [inline] |
argos::CDegrees::CDegrees | ( | Real | f_value | ) | [inline, explicit] |
void argos::CDegrees::FromValueInAseba | ( | SInt16 | n_value | ) | [inline] |
void argos::CDegrees::FromValueInRadians | ( | Real | f_value | ) | [inline] |
Real argos::CDegrees::GetValue | ( | ) | const [inline] |
bool argos::CDegrees::operator!= | ( | const CDegrees & | c_degrees | ) | const [inline] |
bool argos::CDegrees::operator< | ( | const CDegrees & | c_degrees | ) | const [inline] |
bool argos::CDegrees::operator<= | ( | const CDegrees & | c_degrees | ) | const [inline] |
bool argos::CDegrees::operator== | ( | const CDegrees & | c_degrees | ) | const [inline] |
bool argos::CDegrees::operator> | ( | const CDegrees & | c_degrees | ) | const [inline] |
bool argos::CDegrees::operator>= | ( | const CDegrees & | c_degrees | ) | const [inline] |
void argos::CDegrees::SetValue | ( | Real | f_value | ) | [inline] |
CDegrees& argos::CDegrees::SignedNormalize | ( | ) | [inline] |
CDegrees& argos::CDegrees::UnsignedNormalize | ( | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | c_os, |
const CDegrees & | c_degrees | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | is, |
CDegrees & | c_degrees | ||
) | [friend] |