triangulate

package
Version: v2.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InTriangle

func InTriangle(pt, pt0, pt1, pt2 Point) bool

func Triangulate

func Triangulate(pts []Point) []uint16

Triangulate triangulates the region surrounded by the points pts and returnes the point indices.

Types

type Point

type Point struct {
	X float32
	Y float32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to