model

package
v0.0.0-...-e43e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoData

type GeoData []GeoPoint

func NewGeoDataFromLatLng

func NewGeoDataFromLatLng(data []s2.LatLng) GeoData

func (*GeoData) Sanitize

func (g *GeoData) Sanitize()

func (*GeoData) ToLatLng

func (g *GeoData) ToLatLng() []s2.LatLng

func (*GeoData) ToVector

func (g *GeoData) ToVector(multiplier float64) []*geometry.Vector

type GeoPoint

type GeoPoint struct {
	Lat  float64 `json:"lat"`  // Latitude
	Long float64 `json:"long"` // Longitude
}

func (GeoPoint) Equal

func (g GeoPoint) Equal(data GeoPoint) bool

func (GeoPoint) ToLatLng

func (g GeoPoint) ToLatLng() s2.LatLng

func (GeoPoint) ToVector

func (g GeoPoint) ToVector(multiplier float64) *geometry.Vector

type Point

type Point struct {
	X float64
	Y float64
}

Jump to

Keyboard shortcuts

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