Made GetRegionHashCode(Coordinates) wrapper
public static ulong GetRegionHashCode(Coordinates coordinates) now calls GetRegionHashCode(coordinates.latitude, coordinates.longitude)
This commit is contained in:
parent
0d4597c12c
commit
255d924dc4
@ -32,9 +32,7 @@ public class Coordinates
|
||||
|
||||
public static ulong GetRegionHashCode(Coordinates coordinates)
|
||||
{
|
||||
float latRegion = coordinates.latitude - coordinates.latitude % Region.RegionSize;
|
||||
float lonRegion = coordinates.longitude - coordinates.longitude % Region.RegionSize;
|
||||
return GetHashCode(latRegion, lonRegion);
|
||||
return GetRegionHashCode(coordinates.latitude, coordinates.longitude);
|
||||
}
|
||||
|
||||
private const float decimalCoordsSave = 10000; //Latitude maxChars = 7
|
||||
|
Loading…
Reference in New Issue
Block a user