#include <iostream>
#include <ignition/math/Helpers.hh>
#include <ignition/math/config.hh>
Go to the source code of this file.
|
#define | IGN_DTOR(d) ((d) * IGN_PI / 180) |
| Converts degrees to radians.
|
|
#define | IGN_NORMALIZE(a) (atan2(sin(a), cos(a))) |
| Macro that normalizes an angle in the range -Pi to Pi.
|
|
#define | IGN_RTOD(r) ((r) * 180 / IGN_PI) |
| Macro that converts radians to degrees.
|
|
◆ 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