coords

package
v0.0.0-...-29aba68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const RadiusEarth = 6372.8

RadiusEarth is the radius of the Earth

Variables

This section is empty.

Functions

func HsDist

func HsDist(p1, p2 Pos) float64

HsDist is the distance from two positions using the great circle formula

Types

type Coordinate

type Coordinate struct {
	Lat float64
	Lon float64
}

Coordinate on the Earth

type Pos

type Pos struct {
	// contains filtered or unexported fields
}

Pos is a coordinate in radians

func DegPos

func DegPos(lat, lon float64) Pos

DegPos returns (radians) from lat and lon

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL