Here you can find the source of epsilonZero(double input)
public static boolean epsilonZero(double input)
//package com.java2s; //License from project: Apache License public class Main { /** @return true if input is ~== 0*/ public static boolean epsilonZero(double input) { return Math.abs(input) < 0.000001; }/*ww w.j a v a 2 s. c o m*/ }