ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
It defines the basic type CRadians, used to store an angle value in radians. More...
#include <angles.h>
Public Member Functions | |
CRadians () | |
Class constructor It initializes m_fValue to 0 radians. | |
CRadians (Real f_value) | |
Class constructor It initializes m_fValue to the passed value. | |
void | FromValueInDegrees (Real f_value) |
Sets the value from a value in degrees It sets m_fValue (which is in radians) converting from the passed value in degrees. | |
void | FromValueInAseba (SInt16 n_value) |
Sets the value from a value in Aseba format It sets m_fValue (which is in radians) converting from the passed value in Aseba format. | |
Real | GetValue () const |
Returns the value in radians. | |
Real | GetAbsoluteValue () const |
Returns the absolute value in radians. | |
void | SetValue (Real f_value) |
Sets the value in radians. | |
CRadians & | SignedNormalize () |
Normalizes the value in the range [-PI:PI]. | |
CRadians & | UnsignedNormalize () |
Normalizes the value in the range [0:TWO_PI]. | |
CRadians & | Negate () |
CRadians & | operator+ () |
CRadians | operator- () const |
CRadians & | operator+= (const CRadians &c_radians) |
CRadians & | operator-= (const CRadians &c_radians) |
CRadians & | operator*= (Real f_value) |
CRadians & | operator/= (Real f_value) |
CRadians | operator+ (const CRadians &c_radians) const |
CRadians | operator- (const CRadians &c_radians) const |
CRadians | operator* (Real f_value) const |
Real | operator/ (const CRadians &c_radians) const |
CRadians | operator/ (Real f_value) const |
bool | operator< (const CRadians &c_radians) const |
bool | operator<= (const CRadians &c_radians) const |
bool | operator> (const CRadians &c_radians) const |
bool | operator>= (const CRadians &c_radians) const |
bool | operator== (const CRadians &c_radians) const |
bool | operator!= (const CRadians &c_radians) const |
Static Public Attributes | |
static const CRadians | PI |
The PI constant. | |
static const CRadians | TWO_PI |
Set to PI * 2. | |
static const CRadians | PI_OVER_TWO |
Set to PI / 2. | |
static const CRadians | PI_OVER_THREE |
Set to PI / 3. | |
static const CRadians | PI_OVER_FOUR |
Set to PI / 4. | |
static const CRadians | PI_OVER_SIX |
Set to PI / 6. | |
static const CRadians | ZERO |
Set to zero radians. | |
static const CRange< CRadians > | SIGNED_RANGE |
The signed normalization range [-PI:PI]. | |
static const CRange< CRadians > | UNSIGNED_RANGE |
The unsigned normalization range [0:TWO_PI]. | |
static const CRange< SInt32 > | ASEBA_RANGE |
The Aseba normalization range [-32768:32767]. | |
static const Real | RADIANS_TO_DEGREES |
Constant to convert from radians to degrees. | |
Friends | |
CRadians | operator* (Real f_value, const CRadians &c_radians) |
CDegrees | ToDegrees (const CRadians &c_radians) |
Converts this object to CDegrees. | |
std::ostream & | operator<< (std::ostream &c_os, const CRadians &c_radians) |
std::istream & | operator>> (std::istream &is, CRadians &c_radians) |
It defines the basic type CRadians, used to store an angle value in radians.
argos::CRadians::CRadians | ( | ) | [inline] |
argos::CRadians::CRadians | ( | Real | f_value | ) | [inline, explicit] |
void argos::CRadians::FromValueInAseba | ( | SInt16 | n_value | ) | [inline] |
void argos::CRadians::FromValueInDegrees | ( | Real | f_value | ) | [inline] |
Real argos::CRadians::GetAbsoluteValue | ( | ) | const [inline] |
Real argos::CRadians::GetValue | ( | ) | const [inline] |
CRadians& argos::CRadians::Negate | ( | ) | [inline] |
bool argos::CRadians::operator!= | ( | const CRadians & | c_radians | ) | const [inline] |
bool argos::CRadians::operator< | ( | const CRadians & | c_radians | ) | const [inline] |
bool argos::CRadians::operator<= | ( | const CRadians & | c_radians | ) | const [inline] |
bool argos::CRadians::operator== | ( | const CRadians & | c_radians | ) | const [inline] |
bool argos::CRadians::operator> | ( | const CRadians & | c_radians | ) | const [inline] |
bool argos::CRadians::operator>= | ( | const CRadians & | c_radians | ) | const [inline] |
void argos::CRadians::SetValue | ( | Real | f_value | ) | [inline] |
CRadians& argos::CRadians::SignedNormalize | ( | ) | [inline] |
Normalizes the value in the range [-PI:PI].
CRadians& argos::CRadians::UnsignedNormalize | ( | ) | [inline] |
Normalizes the value in the range [0:TWO_PI].
std::ostream& operator<< | ( | std::ostream & | c_os, |
const CRadians & | c_radians | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | is, |
CRadians & | c_radians | ||
) | [friend] |
const CRange< SInt32 > argos::CRadians::ASEBA_RANGE [static] |
const CRadians argos::CRadians::PI [static] |
const CRadians argos::CRadians::PI_OVER_FOUR [static] |
const CRadians argos::CRadians::PI_OVER_SIX [static] |
const CRadians argos::CRadians::PI_OVER_THREE [static] |
const CRadians argos::CRadians::PI_OVER_TWO [static] |
const Real argos::CRadians::RADIANS_TO_DEGREES [static] |
const CRange< CRadians > argos::CRadians::SIGNED_RANGE [static] |
const CRadians argos::CRadians::TWO_PI [static] |
const CRange< CRadians > argos::CRadians::UNSIGNED_RANGE [static] |
const CRadians argos::CRadians::ZERO [static] |