main/src/georegression/metric/UtilAngle.java
public static float distanceCW( float angA, float angB ) {
		if( angA >= angB )
			return angA-angB;
		else
			return GrlConstants.F_PI2-(angB-angA);
	}
public static float distanceCW( float angA, float angB ) {
		if( angA >= angB )
			return angA-angB;
		else
			return GrlConstants.F_PI2-(angB-angA);
	}
public static float distanceCW ( float angA , float angB ) { if ( angA >= angB ) return angA - angB ; else return GrlConstants . F_PI2 - ( angB - angA ) ; }
Angular distance in radians to go from angA to angB in clock-wise direction.
The resulting angle will be from 0 to 2&pi;.

@param angA First angle. -pi to pi
@param angB Second angle   -pi to pi
@return An angle from 0 to 2 &pi;
Angular distance in radians to go from angA to angB in clock - wise direction . The resulting angle will be from 0 to 2&pi ; .