Skip to content

normalize cartesian coordinate range #44

@missinglink

Description

@missinglink

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions