Versions in this module Expand all Collapse all v0 v0.4.0 Oct 14, 2022 Changes in this version + func DegreesToRadians(d float64) float64 + func RadiansToDegrees(r float64) float64 + func SemicirclesToRadians(s int32) float64 + type Box struct + Max Point + Min Point + func (b Box) Center() Point + func (b Box) Enclose(pt Point) Box + func (b Box) IsZero() bool + type Circle struct + Origin Point + Radius float64 + func (c Circle) Contains(pt Point) bool + func (c Circle) Enclose(pt Point) Circle + func (c Circle) Grow(factor float64) Circle + func (c Circle) IsZero() bool + func (c Circle) String() string + type Point struct + Lat float64 + Lon float64 + func NewPointFromDegrees(lat, lon float64) Point + func NewPointFromSemicircles(lat, lon int32) Point + func (p Point) DistanceTo(pt Point) float64 + func (p Point) IsZero() bool + func (p Point) MercatorProjection() (float64, float64) + func (p Point) String() string