Override GetHashCode()

This commit is contained in:
C9Glax 2023-02-07 23:53:25 +01:00
parent 79babc036f
commit bb0dd03e0f

View File

@ -31,6 +31,11 @@ public class Coordinates
return latHash * offset + lonHash;
}
public override int GetHashCode()
{
return HashCode.Combine(latitude, longitude);
}
public ulong GetRegionHash()
{
float latRegion = this.latitude - this.latitude % Region.regionSize;