geom

package
v0.0.0-...-518b87e Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bbox

type Bbox [4]float64

func (Bbox) ExpandToFit

func (bb Bbox) ExpandToFit(other Bbox) Bbox

func (Bbox) Overlaps

func (r Bbox) Overlaps(s Bbox) bool

type Coordinates

type Coordinates []Point

func (Coordinates) Bbox

func (points Coordinates) Bbox() Bbox

type Geometry

type Geometry interface {
	Bbox() Bbox
}

type LineShape

type LineShape interface {
	Shape
	Path() Coordinates
}

type MultiLineShape

type MultiLineShape interface {
	Shape
	Paths() Multiline
}

type Multiline

type Multiline []Coordinates

func (Multiline) Bbox

func (points Multiline) Bbox() Bbox

type Point

type Point [2]float64

func (*Point) Bbox

func (p *Point) Bbox() Bbox

type PointShape

type PointShape interface {
	Shape
	Point() Point
}

type PolygonShape

type PolygonShape interface {
	Shape
	Polygon() Multiline
}

type Shape

type Shape interface {
	Geometry
	Attribute(string) string
}

Jump to

Keyboard shortcuts

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