There is a class Point (float x, float y) and a HashMap for storing them. But it is necessary that the points, both coordinates of which differ by less than 10 ^ -4, are considered to be one key, therefore the standard hash generation method will not work.
How to set such a method correctly?