in C this check was equal to abs((int)dist) >= distanceEpsilon comparing float dist to distanceEpsilon is not sufficient, as points are not precise enough, plus they are snapped
in C this check was equal to abs((int)dist) >= distanceEpsilon comparing float dist to distanceEpsilon is not sufficient, as points are not precise enough, plus they are snapped