geo

package
v0.0.0-...-fd35c7f Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package geo contains interfaces of simple geometry objects, and their creation methods

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiLine

type MultiLine interface {
	// Line returns line with specified index
	Line(int) MultiPoint
	// Len returns count of lines
	Len() int
}

MultiLine presents interface of multi line

func NewMultiLine

func NewMultiLine(lines []MultiPoint) MultiLine

NewMultiLine returns new multi line

type MultiPoint

type MultiPoint interface {
	// Point returns point with specified index
	Point(int) Point
	// Len returns count of points
	Len() int
}

MultiPoint presents interface of multi point

func NewMultiPoint

func NewMultiPoint(points []Point) MultiPoint

NewMultiPoint returns new multi point

type MultiPolygon

type MultiPolygon interface {
	// Polygon returns polygon with specified index
	Polygon(int) Polygon
	// Len returns count of polygons
	Len() int
}

MultiPolygon presents interface of multi polygon

func NewMultiPolygon

func NewMultiPolygon(pols []Polygon) MultiPolygon

NewMultiPolygon returns new multi polygon

type Point

type Point interface {
	// X returns value of X dimension
	X() float64
	// Y returns value of X dimension
	Y() float64
	// Z returns value of X dimension
	Z() float64
	// M returns value of X dimension
	M() float64
}

Point presents interface of point

func NewPoint

func NewPoint(x, y float64) Point

NewPoint returns new 2 dimensions point

func NewPointM

func NewPointM(x, y, m float64) Point

NewPointM returns new 3 dimensions point with M dimension

func NewPointZ

func NewPointZ(x, y, z float64) Point

NewPointZ returns new 3 dimensions point with Z dimension

func NewPointZM

func NewPointZM(x, y, z, m float64) Point

NewPointZM returns new 4 dimensions point

type Polygon

type Polygon interface {
	// Ring returns ring with specified index
	Ring(int) MultiPoint
	// Len returns count of rings
	Len() int
}

Polygon presents interface of polygon

func NewPolygon

func NewPolygon(rings []MultiPoint) Polygon

NewPolygon returns new polygon

Jump to

Keyboard shortcuts

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