Package com.mindee.geometry
Class Polygon
- java.lang.Object
-
- com.mindee.geometry.Polygon
-
public class Polygon extends Object
Contains any number of vertex coordinates (Points).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Polygon.PolygonBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Polygon.PolygonBuilder
builder()
boolean
equals(Object object)
Bbox
getAsBbox()
Get the polygon as a Bbox.Point
getCentroid()
Get the central coordinates (centroid) of the Polygon.List<Point>
getCoordinates()
MinMax
getMinMaxX()
Get the maximum and minimum Y coordinates.MinMax
getMinMaxY()
Get the maximum and minimum Y coordinates.boolean
isEmpty()
Returns true if there are no coordinates.String
toString()
-
-
-
Method Detail
-
getAsBbox
public Bbox getAsBbox()
Get the polygon as a Bbox.
-
getCentroid
public Point getCentroid()
Get the central coordinates (centroid) of the Polygon.
-
getMinMaxY
public MinMax getMinMaxY()
Get the maximum and minimum Y coordinates.
-
getMinMaxX
public MinMax getMinMaxX()
Get the maximum and minimum Y coordinates.
-
isEmpty
public boolean isEmpty()
Returns true if there are no coordinates.
-
builder
public static Polygon.PolygonBuilder builder()
-
-