public final class MathUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(double left,
double right,
double tolerance)
Returns true iff
left and right are finite values within tolerance of
each other. |
static boolean |
equals(float left,
float right,
float tolerance)
Returns true iff
left and right are finite values within tolerance of
each other. |
static boolean |
notEquals(double left,
double right,
double tolerance)
Returns true iff
left and right are finite values not within tolerance
of each other. |
static boolean |
notEquals(float left,
float right,
float tolerance)
Returns true iff
left and right are finite values not within tolerance
of each other. |
public static boolean equals(double left,
double right,
double tolerance)
left and right are finite values within tolerance of
each other. Note that both this method and notEquals(double, double, double) returns false if either left or right is infinite or NaN.public static boolean equals(float left,
float right,
float tolerance)
left and right are finite values within tolerance of
each other. Note that both this method and notEquals(double, double, double) returns false if either left or right is infinite or NaN.public static boolean notEquals(double left,
double right,
double tolerance)
left and right are finite values not within tolerance
of each other. Note that both this method and notEquals(double, double, double) returns false if either left or right is infinite or NaN.public static boolean notEquals(float left,
float right,
float tolerance)
left and right are finite values not within tolerance
of each other. Note that both this method and notEquals(double, double, double) returns false if either left or right is infinite or NaN.Copyright © 2015. All Rights Reserved.