I have this javascript code which normalizes geographic coordinates to within the ranges of lat +-90 and lon +-180 (it unwinds multiple rotations around the globe).
This function is quite nice as it avoids floating point precision errors which can occur when using other methods.
Would you be interested in me porting the code to go.geo? If so what would you call the method? it's specific to geographic coordinates.
Maybe this could close #41 as it appears to be doing something similar?
Could be named something like point.NormalizeGeographicCoordinates()
I have this javascript code which normalizes geographic coordinates to within the ranges of
lat +-90andlon +-180(it unwinds multiple rotations around the globe).This function is quite nice as it avoids floating point precision errors which can occur when using other methods.
Would you be interested in me porting the code to go.geo? If so what would you call the method? it's specific to geographic coordinates.
Maybe this could close #41 as it appears to be doing something similar?
Could be named something like
point.NormalizeGeographicCoordinates()