org.osm2world.core.math.algorithms
public class PolygonUtil extends Object
Modifier and Type | Method and Description |
---|---|
static SimplePolygonXZ |
convexHull(SimplePolygonXZ polygon)
returns the convex hull of a simple polygon.
|
static SimplePolygonXZ |
minimumBoundingBox(SimplePolygonXZ polygon)
Calculates the smallest possible bounding box for this polygon.
|
public static final SimplePolygonXZ convexHull(SimplePolygonXZ polygon)
polygon
- any simple polygon, != nullpublic static final SimplePolygonXZ minimumBoundingBox(SimplePolygonXZ polygon)
polygon
- any simple polygon, != null