public class GeoPolygonFactory extends Object
Modifier and Type | Method and Description |
---|---|
static GeoMembershipShape |
buildPolygonShape(List<GeoPoint> pointsList,
int startPointIndex,
int endPointIndex,
SidedPlane startingEdge,
boolean isInternalEdge) |
protected static int |
getLegalIndex(int index,
int size) |
protected static boolean |
isWithin(GeoPoint newPoint,
List<SidedPlane> currentPlanes) |
static GeoMembershipShape |
makeGeoPolygon(List<GeoPoint> pointList,
int convexPointIndex)
Create a GeoMembershipShape of the right kind given the specified bounds.
|
public static GeoMembershipShape makeGeoPolygon(List<GeoPoint> pointList, int convexPointIndex)
pointList
- is a list of the GeoPoints to build an arbitrary polygon out of.convexPointIndex
- is the index of a single convex point whose conformation with
its neighbors determines inside/outside for the entire polygon.public static GeoMembershipShape buildPolygonShape(List<GeoPoint> pointsList, int startPointIndex, int endPointIndex, SidedPlane startingEdge, boolean isInternalEdge)
protected static boolean isWithin(GeoPoint newPoint, List<SidedPlane> currentPlanes)
protected static int getLegalIndex(int index, int size)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.