wear/src/main/java/androidx/wear/widget/ScrollManager.java
private static float normalizeAngleRadians(float angleRadians) {
        if (angleRadians < -Math.PI) {
            angleRadians = (float) (angleRadians + Math.PI * 2);
        }
        if (angleRadians > Math.PI) {
            angleRadians = (float) (angleRadians - Math.PI * 2);
        }
        return angleRadians;
    }
/**
     * Normalizes an angle to be in the range [-pi, pi] by adding or subtracting 2*pi if necessary.
     *
     * @param angleRadians an angle in radians. Must be no more than 2*pi out of normal range.
     * @return an angle in radians in the range [-pi, pi]
     */
Normalizes an angle to be in the range [-pi, pi] by adding or subtracting 2*pi if necessary.
@param angleRadians an angle in radians. Must be no more than 2*pi out of normal range.
@return an angle in radians in the range [-pi, pi]
Normalizes an angle to be in the range [ - pi pi ] by adding or subtracting 2 * pi if necessary . @param angleRadians an angle in radians . Must be no more than 2 * pi out of normal range . @return an angle in radians in the range [ - pi pi ]
private static float normalizeAngleRadians(float angleRadians) {
        if (angleRadians < -Math.PI) {
            angleRadians = (float) (angleRadians + Math.PI * 2);
        }
        if (angleRadians > Math.PI) {
            angleRadians = (float) (angleRadians - Math.PI * 2);
        }
        return angleRadians;
    }
private static float normalizeAngleRadians ( float angleRadians ) { if ( angleRadians < - Math . PI ) { angleRadians = ( float ) ( angleRadians + Math . PI * 2 ) ; } if ( angleRadians > Math . PI ) { angleRadians = ( float ) ( angleRadians - Math . PI * 2 ) ; } return angleRadians ; }
Normalizes an angle to be in the range [-pi, pi] by adding or subtracting 2*pi if necessary.
Normalizes an angle to be in the range [ - pi pi ] by adding or subtracting 2 * pi if necessary .