| java.lang.Object com.projity.util.MathUtils
MathUtils | public class MathUtils (Code) | | |
Method Summary | |
final public static double | inRange(double value, double min, double max) | public static double | roundToDecentPrecision(double value) | final public static int | signum(long diff) Collapse number down to +1 0 or -1 depending on sign. | final public static int | signum(double diff) |
inRange | final public static double inRange(double value, double min, double max)(Code) | | |
roundToDecentPrecision | public static double roundToDecentPrecision(double value)(Code) | | |
signum | final public static int signum(long diff)(Code) | | Collapse number down to +1 0 or -1 depending on sign.
Typically used in compare routines to collapse a difference
of two longs to an int.
Parameters: diff - usually represents the difference of two longs. signum of diff, +1, 0 or -1. |
signum | final public static int signum(double diff)(Code) | | |
|
|