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
}