Change all coordinates from int to float for more precise calculations