dsto.dfc.util
Class Math
java.lang.Object
dsto.dfc.util.Math
public final class Math
- extends Object
Method Summary |
static int |
range(int min,
int value,
int max)
Constrain value to be within a range. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
range
public static int range(int min,
int value,
int max)
- Constrain value to be within a range.
- Parameters:
min
- The min vaule.value
- The value to compare.max
- The max value.
- Returns:
- A value >= min and <= max.
Copyright © 2008 Commonwealth of Australia