main/src/georegression/metric/UtilAngle.java
public static float bound( float ang ) {
		ang %= GrlConstants.F_PI2;

		if( ang > GrlConstants.F_PI ) {
			return ang - GrlConstants.F_PI2;
		} else if( ang < -GrlConstants.F_PI ) {
			return ang + GrlConstants.F_PI2;
		}

		return ang;
	}
public static float bound( float ang ) {
		ang %= GrlConstants.F_PI2;

		if( ang > GrlConstants.F_PI ) {
			return ang - GrlConstants.F_PI2;
		} else if( ang < -GrlConstants.F_PI ) {
			return ang + GrlConstants.F_PI2;
		}

		return ang;
	}
public static float bound ( float ang ) { ang %= GrlConstants . F_PI2 ; if ( ang > GrlConstants . F_PI ) { return ang - GrlConstants . F_PI2 ; } else if ( ang < - GrlConstants . F_PI ) { return ang + GrlConstants . F_PI2 ; } return ang ; }
Returns an angle which is equivalent to the one provided, but between (inclusive) -&pi; and &pi;.
Returns an angle which is equivalent to the one provided but between ( inclusive ) - &pi ; and &pi ; .