-
- All Known Implementing Classes:
AbstractDecomposer
,Bayazit
,EarClipping
,SweepLine
public interface Decomposer
Represents an algorithm to decompose a given polygon (as a list of points) intoConvex
pieces.- Since:
- 2.2.0
- Version:
- 4.2.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Convex>
decompose(List<Vector2> points)
Performs the decomposition on the given polygon returning a list ofConvex
shapes.List<Convex>
decompose(Vector2... points)
Performs the decomposition on the given polygon returning a list ofConvex
shapes.
-
-
-
Method Detail
-
decompose
List<Convex> decompose(Vector2... points)
Performs the decomposition on the given polygon returning a list ofConvex
shapes.- Parameters:
points
- the polygon vertices- Returns:
- List<
Convex
> - Throws:
NullPointerException
- if points is null or contains null pointsIllegalArgumentException
- if points contains less than 4 points
-
decompose
List<Convex> decompose(List<Vector2> points)
Performs the decomposition on the given polygon returning a list ofConvex
shapes.- Parameters:
points
- the polygon vertices- Returns:
- List<
Convex
> - Throws:
NullPointerException
- if points is null or contains null pointsIllegalArgumentException
- if points contains less than 4 points- Since:
- 4.2.0
-
-