Class Polygon

java.lang.Object
com.arubanetworks.meridian.util.Polygon

public class Polygon extends Object
  • Constructor Details

  • Method Details

    • fromPolygon

      public static Polygon fromPolygon(Polygon src)
    • fromCSVPoints

      public static Polygon fromCSVPoints(String csvPoints)
    • toCSVPoints

      public String toCSVPoints()
    • contains

      public boolean contains(float x, float y)
    • containsPoint

      public boolean containsPoint(PointF point)
    • findClosestPointFromPoint

      public PointF findClosestPointFromPoint(PointF point)
    • getPath

      public Path getPath()
    • getPoints

      public List<PointF> getPoints()
    • getPolygonAsPoints

      public static float[] getPolygonAsPoints(Polygon poly)
      Convenience routine to convert a Polygon to an array of points
      Parameters:
      poly -
      • the Polygon to be connverted
      Returns:
      Array of floats with the length of the array as the first item [num, x1, y1, x2, y2, …]