pseudopolygon

package
v0.0.0-...-3cd2f5a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrInvalidPseudoPolygonSize is returned when an invalid polygon
	ErrInvalidPseudoPolygonSize = errors.String("invalid polygon, not enough points")
	// ErrAllPointsColinear is returned when more the 2 points are given and they all line on a line
	ErrAllPointsColinear = errors.String("all points are colinear")
)

Variables

This section is empty.

Functions

func Triangulate

func Triangulate(oPoints []geom.Point, order winding.Order) (edges []geom.Line, err error)

Triangulate will return triangulated edges for the given polygon. The edges are not guaranteed to be unique or normalized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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