Loading...
Searching...
No Matches
Angle.hh File Reference
#include <iostream>
#include <ignition/math/Helpers.hh>
#include <ignition/math/config.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::IGNITION_MATH_VERSION_NAMESPACE::Angle
 An angle and related functions. More...
 

Namespaces

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

Macros

#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.
 

Macro Definition Documentation

◆ IGN_DTOR

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

Converts degrees to radians.

Parameters
[in]degrees
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
[in]angle
Returns
the angle, in range

◆ IGN_RTOD

#define IGN_RTOD ( r)    ((r) * 180 / IGN_PI)

Macro that converts radians to degrees.

Parameters
[in]radians
Returns
degrees