function rebasePositive(angle){
    if(angle < 0){
        return angle + TWO_PI;
    } else {
        return angle;
    }
}
// rather than -pi to pi
rather than -pi to pi
rather than - pi to pi
function rebasePositive(angle){
    if(angle < 0){
        return angle + TWO_PI;
    } else {
        return angle;
    }
}
function rebasePositive ( angle ) { if ( angle < 0 ) { return angle + TWO_PI ; } else { return angle ; } }
rather than -pi to pi
rather than - pi to pi