src/Azos/Geometry/CartesianUtils.cs
/// <summary>
/// Modifies an angle by delta value ensuring that resulting angle is always between 0 and 2Pi
/// </summary>
Modifies an angle by delta value ensuring that resulting angle is always between 0 and 2Pi
Modifies an angle by delta value ensuring that resulting angle is always between 0 and 2Pi
public static double WrapAngle(double angle, double delta)
    {
      delta = delta % PI2;
      if (delta<0)
        delta =  PI2 + delta;
      double result = angle + delta;
      return result % PI2;
    }
public static double WrapAngle ( double angle , double delta ) { delta = delta % PI2 ; if ( delta < 0 ) delta = PI2 + delta ; double result = angle + delta ; return result % PI2 ; }
Modifies an angle by delta value ensuring that resulting angle is always between 0 and 2Pi
Modifies an angle by delta value ensuring that resulting angle is always between 0 and 2Pi
angle
double
delta
double