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 doubleDBL_EPSILONstatic floatFLT_EPSILON
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static inthashCode(double x)static inthashCode(float x)static booleanisNear(double x, double y)static booleanisNear(double x, double y, double absolute_tolerance, double relative_tolerance)static booleanisNear(float x, float y)static booleanisNear(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)
-
-