|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.maps.client.geometrylib.PolyUtils
public class PolyUtils
Utility functions for computations involving polygons and polylines.
See Poly Utils API Doc
| Constructor Summary | |
|---|---|
PolyUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolyUtils()
| Method Detail |
|---|
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 polygon
public static final boolean isLocationOnEdge(LatLng point,
Polyline polyline)
point - test pointpolyline - along this polyline
public static final boolean isLocationOnEdge(LatLng point,
Polygon polygon,
double tolerance)
point - test pointpolygon - within tolerance of this polygontolerance - degrees from edge
public static final boolean isLocationOnEdge(LatLng point,
Polyline polyline,
double tolerance)
point - test pointpolyline - within tolerance of this linetolerance - degrees from edge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||