gcs

package
v0.0.0-...-6bf85cd Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gcs Created by RTT. Author: teocci@yandex.com on 2021-Sep-06

Package gcs Created by RTT. Author: teocci@yandex.com on 2021-Sep-06

Index

Constants

View Source
const (
	Metre        MetricLength = 1
	M                         = Metre
	CentiMetre                = M / 1e2
	CM                        = CentiMetre
	KiloMetre                 = 1000 * Metre
	KM                        = KiloMetre
	Mile                      = 1609.344 * Metre
	Mi                        = Mile
	NauticalMile              = 1852 * Metre
	NM                        = NauticalMile
)
View Source
const (
	MinSouth = 35.61469485754825
	MinWest  = 127.26129834574632

	MaxNorth = 36.03345205933448
	MaxEast  = 127.6288468798199
)

Variables

This section is empty.

Functions

func MLTags

func MLTags() []string

func MapML

func MapML() map[string]MetricLength

Types

type Delta

type Delta struct {
	Lat float64
	Lon float64
}

Delta represents de difference between two SCS coordinates.

type MetricLength

type MetricLength float64

func Distance

func Distance(c, r SCS) MetricLength

type SCS

type SCS struct {
	Lat float64
	Lon float64
}

SCS represents a spherical coordinate system using latitude, longitude.

func (SCS) CentiMetersTo

func (c SCS) CentiMetersTo(r SCS) MetricLength

func (SCS) Delta

func (c SCS) Delta(r SCS) Delta

func (SCS) Equals

func (c SCS) Equals(r SCS) bool

func (SCS) InRange

func (c SCS) InRange() bool

func (SCS) LatInRange

func (c SCS) LatInRange() bool

func (SCS) LonInRange

func (c SCS) LonInRange() bool

func (SCS) MetersTo

func (c SCS) MetersTo(r SCS) MetricLength

Jump to

Keyboard shortcuts

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