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