public class Polygon extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(float x,
float y) |
boolean |
containsPoint(PointF point) |
PointF |
findClosestPointFromPoint(PointF point) |
static Polygon |
fromCSVPoints(String csvPoints) |
static Polygon |
fromPolygon(Polygon src) |
Path |
getPath() |
List<PointF> |
getPoints() |
static float[] |
getPolygonAsPoints(Polygon poly)
Convenience routine to convert a Polygon to an array of points
|
String |
toCSVPoints() |
public String toCSVPoints()
public boolean contains(float x, float y)
public boolean containsPoint(PointF point)
public Path getPath()
public static float[] getPolygonAsPoints(Polygon poly)
Convenience routine to convert a Polygon to an array of points
poly
-