Java Epsilon epsilonEquals(float p_180185_0_, float p_180185_1_)

Here you can find the source of epsilonEquals(float p_180185_0_, float p_180185_1_)

Description

epsilon Equals

License

Open Source License

Declaration

public static boolean epsilonEquals(float p_180185_0_, float p_180185_1_) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean epsilonEquals(float p_180185_0_, float p_180185_1_) {
        return abs(p_180185_1_ - p_180185_0_) < 1.0E-5F;
    }/*w w w  .  ja v a2s  .c  o  m*/

    public static float abs(float value) {
        return value >= 0.0F ? value : -value;
    }
}

Related

  1. epsilon(double v)
  2. epsilonCeiling(double value)
  3. epsilonEquals(final double a, final double b, final double epsilon)
  4. epsilonEquals(final float x, final float y)
  5. epsilonEquals(float f1, float f2, float epsilon)
  6. epsilonEquals(float v1, float v2)
  7. epsilonFloor(double d)
  8. epsilonZero(double input)