Package com.arubanetworks.meridian.util
Class Polygon
java.lang.Object
com.arubanetworks.meridian.util.Polygon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(float x, float y) booleancontainsPoint(PointF point) findClosestPointFromPoint(PointF point) static PolygonfromCSVPoints(String csvPoints) static PolygonfromPolygon(Polygon src) getPath()static float[]getPolygonAsPoints(Polygon poly) Convenience routine to convert a Polygon to an array of points
-
Constructor Details
-
Polygon
-
-
Method Details
-
fromPolygon
-
fromCSVPoints
-
toCSVPoints
-
contains
public boolean contains(float x, float y) -
containsPoint
-
findClosestPointFromPoint
-
getPath
-
getPoints
-
getPolygonAsPoints
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, …]
-