Modifier and Type | Method and Description |
---|---|
Polygon2D |
Polygon2D.getHull()
Get the convex hull of this polygon.
Note: returned hull is not a closed polygon (first point is not repeated as the last point). Uses JTS method: Geometry.convexHull() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Polygon2D> |
ShapeMap.iterator()
Iterator supporting for-each style iteration over all polygons in this map.
|
Modifier and Type | Method and Description |
---|---|
void |
ShapeMap.addPolygon(Polygon2D poly)
Add a new polygon shape to this map.
|
Constructor and Description |
---|
Polygon2D(Polygon2D poly)
Copy constructor - makes a copy of the specified polygon.
|
Constructor and Description |
---|
ShapeMap(java.util.ArrayList<Polygon2D> polys,
Point2D src,
Point2D dest)
Construct a ShapeMap with a specified set of polygons and a specified source and destination point.
|