src/main/java/frc/team5431/titan/core/misc/Calc.java
public final static boolean approxEquals(final double a, final double b, final double epsilon)
			throws IllegalArgumentException {
		if (epsilon < 0)
			throw new IllegalArgumentException("Epsilon must be positive");

		if (a == b)
			return true;

		return Math.abs(a - b) < epsilon;
	}
/**
	 * Detects whether two values are within a certain range of each other.
	 * 
	 * @param a       the first value
	 * @param b       the second value
	 * @param epsilon the range
	 * @return whether they are approximately equal according to the range
	 * @throws IllegalArgumentException if epsilon is negative
	 */
Detects whether two values are within a certain range of each other.


Detects whether two values are within a certain range of each other .
public final static boolean approxEquals(final double a, final double b, final double epsilon)
			throws IllegalArgumentException {
		if (epsilon < 0)
			throw new IllegalArgumentException("Epsilon must be positive");
		if (a == b)
			return true;
		return Math.abs(a - b) < epsilon;
	}
public final static boolean approxEquals ( final double a , final double b , final double epsilon ) throws IllegalArgumentException { if ( epsilon < 0 ) throw new IllegalArgumentException ( "Epsilon must be positive" ) ; if ( a == b ) return true ; return Math . abs ( a - b ) < epsilon ; }
Detects whether two values are within a certain range of each other.
Detects whether two values are within a certain range of each other .