Function tuw::angle_normalize

Function Documentation

inline double tuw::angle_normalize(double angle, double min_angle = -M_PI, double max_angle = +M_PI)

normalizes an angle between min_angle and max_angle but max_angle - min_angle >= 2PI

Parameters:
  • angle – to normalize

  • min_angle

  • max_angle

Returns:

normalize angle