ebiten: github.com/hajimehoshi/ebiten/vector/internal/triangulate Index | Files

package triangulate

import "github.com/hajimehoshi/ebiten/vector/internal/triangulate"


Package Files

math.go triangulate.go

func InTriangle Uses

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

func Triangulate Uses

func Triangulate(pts []Point) []uint16

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

type Point Uses

type Point struct {
    X   float32
    Y   float32

Package triangulate imports 2 packages (graph) and is imported by 3 packages. Updated 2020-04-14. Refresh now. Tools for package owners.