projection

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MATH_HALF_PI    = 0.5 * math.Pi
	MATH_TWO_PI     = 2.0 * math.Pi
	MATH_QUARTER_PI = 0.25 * math.Pi
)

* Mathematical constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Projection

type Projection interface {
	Forward(dst []coordinates.Cartesian, src []coordinates.Geographic) error
	ForwardSingle(dst *coordinates.Cartesian, src *coordinates.Geographic) error
	Inverse(dst []coordinates.Geographic, src []coordinates.Cartesian) error
	InverseSingle(dst *coordinates.Geographic, src *coordinates.Cartesian) error
}

* Interface type representing a projection from geographic locations to points * in a plane (surface of a map) and the other way round.

func Mercator

func Mercator() Projection

* Create a Mercator projection.

Jump to

Keyboard shortcuts

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