public interface GeoPolygon
Modifier and Type | Method and Description |
---|---|
List<GeoPoint> |
getPoints() |
static GeoPolygon |
of(GeoPoint firstPoint,
GeoPoint secondPoint,
GeoPoint thirdPoint,
GeoPoint fourthPoint,
GeoPoint... additionalPoints)
Create a
GeoPolygon from points. |
static GeoPolygon |
of(List<GeoPoint> points)
Create a
GeoPolygon from a list of points. |
static GeoPolygon of(List<GeoPoint> points)
GeoPolygon
from a list of points.
The first and last points must be identical.
points
- The list of points. Must not be null. Must contain at least four points.GeoPolygon
.IllegalArgumentException
- If the list is null, or if the first and last points are not identical.static GeoPolygon of(GeoPoint firstPoint, GeoPoint secondPoint, GeoPoint thirdPoint, GeoPoint fourthPoint, GeoPoint... additionalPoints)
GeoPolygon
from points.
The first and last points must be identical.
firstPoint
- The first point. Must not be null.secondPoint
- The second point. Must not be null.thirdPoint
- The third point. Must not be null.fourthPoint
- The fourth point. Must not be null.additionalPoints
- An array of additional points. Must not be null. May be empty.GeoPolygon
.IllegalArgumentException
- If any of the arguments is null, or if the first and last points are not identical.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.