Template Function irobot_create_toolbox::IsAngleBetween

Function Documentation

template<typename T>
bool irobot_create_toolbox::IsAngleBetween(T target, T angle1, T angle2)

Calculate if a provided angle in radians is within the arc formed by two other angles.

Parameters:
  • target – angle to test

  • angle1 – first leg of the arc

  • target – second leg of the arc