public static final double signed ( double angle ) { angle = normalizeToFullAngle ( angle ) ; if ( angle > Math . PI ) { return angle - FULL_CIRCLE ; } else { return angle ; } }
Convert full angle to signed angle - 180 - 180 . 340 - &gt ; - 20