rapid
A ROS robotics library.
|
Type for angles measured in radians. More...
#include <deg_rad.h>
Public Member Functions | |
Radians (double radians) | |
Constructor. More... | |
Radians (const Degrees °rees) | |
Implicit converting constructor from degrees to radians. More... | |
double | value () const |
Type for angles measured in radians.
Allows algorithms to explicitly document what units it expects for angle inputs.
|
explicit |
Constructor.
[in] | radians | The angle expressed in radians. |
rapid::Radians::Radians | ( | const Degrees & | degrees | ) |
Implicit converting constructor from degrees to radians.
This allows algorithms that expect Radians to also accept Degrees without developers having to explicitly do the conversion. For example, if PanTilt expects arguments as Radians, both of these are correct:
[in] | degrees | The angle expressed in degrees. |
double rapid::Radians::value | ( | ) | const |