java.lang.Object
org.openpatch.scratch.extensions.tiled.Polygon

public class Polygon extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    The points that make up the polygon.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double[][]
    Returns the points that make up the polygon as an array of double arrays.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • points

      public String 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