Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)