#include <iostream>
#include <gz/math/Helpers.hh>
#include <gz/math/config.hh>
Go to the source code of this file.
|
class | Angle |
| The Angle class is used to simplify and clarify the use of radians and degrees measurements. A default constructed Angle instance has a value of zero radians/degrees. More...
|
|
◆ IGN_DTOR
#define IGN_DTOR |
( |
|
d | ) |
((d) * IGN_PI / 180) |
Converts degrees to radians.
- Parameters
-
- Returns
- radians
◆ IGN_NORMALIZE
#define IGN_NORMALIZE |
( |
|
a | ) |
(atan2(sin(a), cos(a))) |
Macro that normalizes an angle in the range -Pi to Pi.
- Parameters
-
- Returns
- the angle, in range
◆ IGN_RTOD
#define IGN_RTOD |
( |
|
r | ) |
((r) * 180 / IGN_PI) |
Macro that converts radians to degrees.
- Parameters
-
- Returns
- degrees