Package com.myscript.util
Class Numbers
- java.lang.Object
-
- com.myscript.util.Numbers
-
public final class Numbers extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static double
DBL_EPSILON
static float
FLT_EPSILON
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
hashCode(double x)
static int
hashCode(float x)
static boolean
isNear(double x, double y)
static boolean
isNear(double x, double y, double absolute_tolerance, double relative_tolerance)
static boolean
isNear(float x, float y)
static boolean
isNear(float x, float y, float absolute_tolerance, float relative_tolerance)
-
-
-
Field Detail
-
FLT_EPSILON
public static final float FLT_EPSILON
- See Also:
- Constant Field Values
-
DBL_EPSILON
public static final double DBL_EPSILON
- See Also:
- Constant Field Values
-
-
Method Detail
-
isNear
public static boolean isNear(float x, float y, float absolute_tolerance, float relative_tolerance)
-
isNear
public static boolean isNear(float x, float y)
-
isNear
public static boolean isNear(double x, double y, double absolute_tolerance, double relative_tolerance)
-
isNear
public static boolean isNear(double x, double y)
-
hashCode
public static int hashCode(float x)
-
hashCode
public static int hashCode(double x)
-
-