angles.js
function(n, a, b) { // Check if an angle n is between a and b

      var c = this['SCALE'];
      n = mod(n, c);
      a = mod(a, c);
      b = mod(b, c);

      if (a < b)
        return a <= n && n <= b;
      // return 0 <= n && n <= b || a <= n && n < 360;
      return a <= n || n <= b;
    }
function(n, a, b) { // Check if an angle n is between a and b

      var c = this['SCALE'];
      n = mod(n, c);
      a = mod(a, c);
      b = mod(b, c);

      if (a < b)
        return a <= n && n <= b;
      // return 0 <= n && n <= b || a <= n && n < 360;
      return a <= n || n <= b;
    }
function ( n , a , b ) { // Check if an angle n is between a and b var c = this [ 'SCALE' ] ; n = mod ( n , c ) ; a = mod ( a , c ) ; b = mod ( b , c ) ; if ( a < b ) return a <= n && n <= b ; // return 0 <= n && n <= b || a <= n && n < 360; return a <= n || n <= b ; }
Checks if an angle is between two other angles

@param {number} n
@param {number} a
@param {number} b
@returns {boolean}
Checks if an angle is between two other angles