#include <cmath>
#include <cstddef>
Go to the source code of this file.
|
namespace | mrpt |
| This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
|
|
namespace | mrpt::math |
| This base provides a set of functions for maths stuff.
|
|
|
template<class T > |
void | mrpt::math::wrapTo2PiInPlace (T &a) |
| Modifies the given angle to translate it into the [0,2pi[ range.
|
|
template<class T > |
T | mrpt::math::wrapTo2Pi (T a) |
| Modifies the given angle to translate it into the [0,2pi[ range.
|
|
template<class T > |
T | mrpt::math::wrapToPi (T a) |
| Modifies the given angle to translate it into the ]-pi,pi] range.
|
|
template<class T > |
void | mrpt::math::wrapToPiInPlace (T &a) |
| Modifies the given angle to translate it into the ]-pi,pi] range.
|
|
template<class VECTOR > |
void | mrpt::math::unwrap2PiSequence (VECTOR &x) |
| Modify a sequence of angle values such as no consecutive values have a jump larger than PI in absolute value.
|
|
template<class T > |
T | mrpt::math::angDistance (T from, T to) |
| Computes the shortest angular increment (or distance) between two planar orientations, such that it is constrained to [-pi,pi] and is correct for any combination of angles (e.g.
|
|
◆ _USE_MATH_DEFINES
#define _USE_MATH_DEFINES |