haversine

package
v0.0.0-...-c5bcced Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Module

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

func (*Module) Distance

func (this *Module) Distance(a, b *Point) float64

func (*Module) Point

func (this *Module) Point(lat, lng float64) *Point

type Point

type Point struct {
	Lat float64 `console:"lat" codec:"lat"`
	Lng float64 `console:"lng" codec:"lng"`
	// contains filtered or unexported fields
}

func NewPoint

func NewPoint(orb *orbit.Orbit, lat, lng float64) *Point

func (*Point) Distance

func (this *Point) Distance(to *Point) float64

Jump to

Keyboard shortcuts

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