Here you can find the source of epsilonEquals(float v1, float v2)
public static boolean epsilonEquals(float v1, float v2)
//package com.java2s; //License from project: Apache License public class Main { /** A small number. */ public static final float EPSILON = 0.00001f; /**/*from ww w.j a v a 2 s .c o m*/ * Determines whether two values are "close enough" to equal. */ public static boolean epsilonEquals(float v1, float v2) { return Math.abs(v1 - v2) < EPSILON; } }