Skip to content

Mercator: Clamp latitude to valid range #103

@clarisma

Description

@clarisma

yFromLat() should clamp latitudes that all outside the valid Mercator range (+/- 85 latitude).

Clarify: What should happen to invalid latitudes (beyond +/-90)? Clamp them or throw exception?

Should also introduce yFromLatUnclamped() for performance reasons for callers that guarantee that latitudes fall within the Mercator range.

Related to #86, clarisma/gol-tool#112

Metadata

Metadata

Assignees

No one assigned

    Labels

    todoA feature that has been specified, but not yet implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions