public final class MathUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isZero(double val)
Check whether a value is zero, using a default epsilon.
|
static boolean |
isZero(double val,
double epsilon)
Check whether a value is zero, using a configurable epsilon.
|
public static boolean isZero(double val)
Check whether a value is zero, using a default epsilon.
val - The value.true if the value is within an epsilon of zero.public static boolean isZero(double val,
double epsilon)
Check whether a value is zero, using a configurable epsilon.
val - The value.epsilon - The tolerance.true if absolute value of val is less than epsilon.