-
- All Known Implementing Classes:
EarClipping
,SweepLine
public interface Triangulator
Represents an algorithm to triangulate a given polygon (as a list of points) intoTriangle
s.- Since:
- 3.1.9
- Version:
- 3.1.9
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Triangle>
triangulate(Vector2... points)
Performs the triangulation on the given polygon returning a list ofTriangle
s.
-
-
-
Method Detail
-
triangulate
List<Triangle> triangulate(Vector2... points)
Performs the triangulation on the given polygon returning a list ofTriangle
s.- Parameters:
points
- the polygon vertices- Returns:
- List<
Triangle
> - Throws:
NullPointerException
- if points is null or contains null pointsIllegalArgumentException
- if points contains less than 4 points
-
-