main/src/georegression/metric/UtilAngle.java
public static double reflectZeroToOne(double value ) {
		if( value < 0 )
			value = -value;
		value = value%2.0;
		if( value > 1.0 )
			return 2.0 - value;
		return value;
	}
public static double reflectZeroToOne(double value ) {
		if( value < 0 )
			value = -value;
		value = value%2.0;
		if( value > 1.0 )
			return 2.0 - value;
		return value;
	}
public static double reflectZeroToOne ( double value ) { if ( value < 0 ) value = - value ; value = value % 2.0 ; if ( value > 1.0 ) return 2.0 - value ; return value ; }
Ensures a reflective bound so that the numbers from 0 to 1, where 0 is inclusive and 1 is inclusive.
<pre>Examples:
1.5   = 0.5
-0.25 = 0.25
-0.75 = 0.75
0     = 0
1     = 1
0.999 = 0.999
2     = 0
-1    = 1
</pre>

@return A value from 0 to 1. [0,1]
Ensures a reflective bound so that the numbers from 0 to 1 where 0 is inclusive and 1 is inclusive . <pre > Examples : 1 . 5 = 0 . 5 - 0 . 25 = 0 . 25 - 0 . 75 = 0 . 75 0 = 0 1 = 1 0 . 999 = 0 . 999 2 = 0 - 1 = 1 < / pre >