Template Function mrpt::math::wrapToPi

Function Documentation

template<class T>
T mrpt::math::wrapToPi(T a)

Modifies the given angle to translate it into the ]-pi,pi] range.

Note

Take care of not instancing this template for integer numbers, since it only works for float, double and long double.