concaveman

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: ISC Imports: 5 Imported by: 0

README

concaveman-go

Go

Golang port of mapbox's JS concaveman.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PointInPolygon

func PointInPolygon(point Point, poly []Point) bool

func PointInPolygonOffset

func PointInPolygonOffset(point Point, poly []Point, start, end int) bool

Types

type Options

type Options struct {
	Concavity       float64
	LengthThreshold float64
}

type Point

type Point [2]float64

func Concaveman

func Concaveman(points []Point, opts ...Options) []Point

func (Point) Rect

func (p Point) Rect() (min, max [2]float64)

impl rbush.Item

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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