public static float normalizeAnglePositive (float a) {
        while (a < 0f) {
            a += TWO_PI;
        }
        while (a >= TWO_PI) {
            a -= TWO_PI;
        }
        return a;
    }
public static float normalizeAnglePositive ( float a ) { while ( a < 0f ) { a += TWO_PI ; } while ( a >= TWO_PI ) { a -= TWO_PI ; } return a ; }
Returns an angle in the range [0, 2pi).