Canguro.Commands.Model.SplitCmd.equals C# (CSharp) Méthode

equals() private static méthode

Compares two Single values. Returns true if the difference is less than a given epsilon.
private static equals ( float a, float b, float epsilon ) : bool
a float The first Single value to compare
b float The second Single value to compare
epsilon float The largest value to consider a and b to be equal.
Résultat bool
        private static bool equals(float a, float b, float epsilon)
        {
            return (a - b < epsilon) && (a - b > -epsilon);
        }