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)
 Converts degrees to radians.
#define IGN_NORMALIZE(a)
 Macro that normalizes an angle in the range -Pi to Pi.
#define IGN_RTOD(r)
 Macro that converts radians to degrees.

Macro Definition Documentation

◆ IGN_DTOR

#define IGN_DTOR ( d)
Value:
((d) * IGN_PI / 180)
#define IGN_PI
Define IGN_PI, IGN_PI_2, and IGN_PI_4.
Definition Helpers.hh:174

Converts degrees to radians.

Parameters
[in]degrees
Returns
radians

◆ IGN_NORMALIZE

#define IGN_NORMALIZE ( a)
Value:
(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)
Value:
((r) * 180 / IGN_PI)

Macro that converts radians to degrees.

Parameters
[in]radians
Returns
degrees