spatial

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 6 Imported by: 4

Documentation

Overview

spatial contains functions for working with the orb, bearings and unit modules together.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(a, b orb.Point) unit.Length

Distance returns the absolute distance between two points on the earth.

func IsZero

func IsZero(point orb.Point) bool

IsZero returns true if the point is the origin.

func NormalizeAltitude

func NormalizeAltitude(altitude unit.Length) unit.Length

NormalizeAltitude returns the absolute length rounded to the nearest 1000 feet, or nearest 100 feet if less than 1000 feet.

func PointAtBearingAndDistance

func PointAtBearingAndDistance(origin orb.Point, bearing bearings.Bearing, distance unit.Length) orb.Point

func TrueBearing

func TrueBearing(a, b orb.Point) bearings.Bearing

TrueBearing returns the true bearing between two points.

Types

This section is empty.

Jump to

Keyboard shortcuts

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