#include <math.h>
#include <iostream>
Go to the source code of this file.
|
| namespace | gazebo |
| | Forward declarations for the common classes.
|
| |
| namespace | gazebo::math |
| | Math namespace.
|
| |
|
| #define | GZ_DTOR(d) ((d) * M_PI / 180) |
| | Converts degrees to radians.
|
| |
| #define | GZ_NORMALIZE(a) (atan2(sin(a), cos(a))) |
| | Macro tha normalizes an angle in the range -Pi to Pi.
|
| |
| #define | GZ_RTOD(r) ((r) * 180 / M_PI) |
| | Macro that converts radians to degrees.
|
| |
| #define GZ_DTOR |
( |
|
d | ) |
((d) * M_PI / 180) |
Converts degrees to radians.
- Parameters
-
- Returns
- radians
| #define GZ_NORMALIZE |
( |
|
a | ) |
(atan2(sin(a), cos(a))) |
Macro tha normalizes an angle in the range -Pi to Pi.
- Parameters
-
- Returns
- the angle, in range
| #define GZ_RTOD |
( |
|
r | ) |
((r) * 180 / M_PI) |
Macro that converts radians to degrees.
- Parameters
-
- Returns
- degrees