public class PolyUtils extends Object
| Constructor and Description |
|---|
PolyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsLocation(LatLng point,
Polygon polygon)
Computes whether the given point lies inside the specified polygon.
|
static boolean |
isLocationOnEdge(LatLng point,
Polygon polygon)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified
tolerance.
|
static boolean |
isLocationOnEdge(LatLng point,
Polygon polygon,
double tolerance)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified
tolerance.
|
static boolean |
isLocationOnEdge(LatLng point,
Polyline polyline)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified
tolerance.
|
static boolean |
isLocationOnEdge(LatLng point,
Polyline polyline,
double tolerance)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified
tolerance.
|
public static final boolean containsLocation(LatLng point, Polygon polygon)
point - polygon - public static final boolean isLocationOnEdge(LatLng point, Polygon polygon)
point - test pointpolygon - within this polygonpublic static final boolean isLocationOnEdge(LatLng point, Polyline polyline)
point - test pointpolyline - along this polylinepublic static final boolean isLocationOnEdge(LatLng point, Polygon polygon, double tolerance)
point - test pointpolygon - within tolerance of this polygontolerance - degrees from edgepublic static final boolean isLocationOnEdge(LatLng point, Polyline polyline, double tolerance)
point - test pointpolyline - within tolerance of this linetolerance - degrees from edgeCopyright © 2011-2013 GWT Maps API V3. All Rights Reserved.