geographiclib

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package geographiclib is a wrapper around the GeographicLib library.

Index

Constants

This section is empty.

Variables

View Source
var (
	// WGS84Spheroid represents the default WGS84 ellipsoid.
	WGS84Spheroid = NewSpheroid(6378137, 1/298.257223563)
)

Functions

This section is empty.

Types

type Spheroid

type Spheroid struct {
	Radius       float64
	Flattening   float64
	SphereRadius float64
}

Spheroid is an object that can perform geodesic operations on a given spheroid.

func NewSpheroid

func NewSpheroid(radius float64, flattening float64) *Spheroid

NewSpheroid creates a spheroid from a radius and flattening.

Jump to

Keyboard shortcuts

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