|
Haptic Controller
|
Go to the source code of this file.
Enumerations | |
| enum | AngleUnits { RADIANS =0 , DEGREES =2 , REVS =3 } |
| Possible angle units, radians, degrees, revolutions. More... | |
Functions | |
| constexpr float | convert_angular_units (float ang, const AngleUnits curr_unit, const AngleUnits desr_unit) |
| Converts an angle from one unit to another. | |
| constexpr Limits< float > | convert_angular_units (const Limits< float > &angLimits, const AngleUnits curr_unit, const AngleUnits desr_unit) |
| Converts a limit from one unit to another. | |
| enum AngleUnits |
Possible angle units, radians, degrees, revolutions.
| Enumerator | |
|---|---|
| RADIANS | |
| DEGREES | |
| REVS | |
Definition at line 7 of file angles.hpp.
|
constexpr |
Converts a limit from one unit to another.
| angLimits | The limit to convert. |
| curr_unit | The unit to convert from. |
| desr_unit | The unit to convert to. |
Definition at line 47 of file angles.hpp.
References DEGREES, Limits< T >::lower, RADIANS, REVS, and Limits< T >::upper.
|
constexpr |
Converts an angle from one unit to another.
| ang | The angle to convert. |
| curr_unit | The unit to convert from. |
| desr_unit | The unit to convert to. |
Definition at line 18 of file angles.hpp.
References DEGREES, RADIANS, and REVS.
Referenced by updateAndSendSystemInfo().