build/browser/index.js
/**
     * Converts the angle specified into one in the closed interval [0, Math.PI]
     * @hidden
     */
Converts the angle specified into one in the closed interval [0, Math.PI]
@hidden
Converts the angle specified into one in the closed interval [ 0 Math . PI ] @hidden
function principalAngle(angle) {
        if (angle > 2 * Math.PI) {
            return principalAngle(angle - 2 * Math.PI);
        }
        else if (angle < 0) {
            return principalAngle(angle + 2 * Math.PI);
        }
        else {
            return angle;
        }
    }
function principalAngle ( angle ) { if ( angle > 2 * Math . PI ) { return principalAngle ( angle - 2 * Math . PI ) ; } else if ( angle < 0 ) { return principalAngle ( angle + 2 * Math . PI ) ; } else { return angle ; } }
Converts the angle specified into one in the closed interval [0, Math.PI]
 @hidden
Converts the angle specified into one in the closed interval [ 0 Math . PI ] @hidden