Class Polygon
java.lang.Object
org.openpatch.scratch.extensions.tiled.Polygon
The Polygon class represents a polygon object in Tiled. It includes a list of points that make up
the polygon.
Example usage:
Polygon p = new Polygon();
p.points = "0,0 10,10";
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[][]
Returns the points that make up the polygon as an array of double arrays.
-
Field Details
-
points
The points that make up the polygon.
-
-
Constructor Details
-
Polygon
public Polygon()
-
-
Method Details
-
getPoints
public double[][] getPoints()Returns the points that make up the polygon as an array of double arrays.- Returns:
- the points that make up the polygon
-