Use float instead of double to store coordinates.