com.google.maps.gwt.client.geometry
Class Poly

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.geometry.Poly

public class Poly
extends JavaScriptObject

Utility functions for computations involving polygons and polylines. THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Constructor Summary
protected Poly()
          Protected constructor avoids default public constructor.
 
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 poly)
          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 poly, 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 poly)
          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 poly, 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

Poly

protected Poly()
Protected constructor avoids default public constructor.

Method Detail

containsLocation

public static final boolean containsLocation(LatLng point,
                                             Polygon polygon)
Computes whether the given point lies inside the specified polygon.


isLocationOnEdge

public static final boolean isLocationOnEdge(LatLng point,
                                             Polygon poly,
                                             double tolerance)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified tolerance.


isLocationOnEdge

public static final boolean isLocationOnEdge(LatLng point,
                                             Polygon poly)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified tolerance.


isLocationOnEdge

public static final boolean isLocationOnEdge(LatLng point,
                                             Polyline poly,
                                             double tolerance)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified tolerance.


isLocationOnEdge

public static final boolean isLocationOnEdge(LatLng point,
                                             Polyline poly)
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified tolerance.