All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Classes | Namespaces | Macros
Angle.hh File Reference
#include <iostream>
#include <ignition/math/Helpers.hh>
Include dependency graph for Angle.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ignition::math::Angle
 An angle and related functions. More...
 

Namespaces

 ignition
 
 ignition::math
 Math classes and function useful in robot applications.
 

Macros

#define IGN_DTOR(d)   ((d) * IGN_PI / 180)
 Converts degrees to radians. More...
 
#define IGN_NORMALIZE(a)   (atan2(sin(a), cos(a)))
 Macro that normalizes an angle in the range -Pi to Pi. More...
 
#define IGN_RTOD(r)   ((r) * 180 / IGN_PI)
 Macro that converts radians to degrees. More...
 

Macro Definition Documentation

#define IGN_DTOR (   d)    ((d) * IGN_PI / 180)

Converts degrees to radians.

Parameters
[in]degrees
Returns
radians
#define IGN_NORMALIZE (   a)    (atan2(sin(a), cos(a)))

Macro that normalizes an angle in the range -Pi to Pi.

Parameters
[in]angle
Returns
the angle, in range
#define IGN_RTOD (   r)    ((r) * 180 / IGN_PI)

Macro that converts radians to degrees.

Parameters
[in]radians
Returns
degrees