EarClipping
, SweepLine
public interface Triangulator
Triangle
s.Modifier and Type | Method | Description |
---|---|---|
java.util.List<Triangle> |
triangulate(Vector2... points) |
Performs the triangulation on the given polygon returning a list of
Triangle s. |
java.util.List<Triangle> triangulate(Vector2... points)
Triangle
s.points
- the polygon verticesTriangle
>java.lang.NullPointerException
- if points is null or contains null pointsjava.lang.IllegalArgumentException
- if points contains less than 4 points