Package com.graphhopper.util.shapes
Interface Shape
public interface Shape
A shape interface to implement circles, polygons or rectangles.
- Author:
- Peter Karich
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double lat, double lon) boolean
intersects
(PointList pointList)
-
Method Details
-
intersects
-
contains
boolean contains(double lat, double lon) - Returns:
- true only if lat and lon are inside (or on the edge) of this shape
-
getBounds
BBox getBounds()- Returns:
- the minimal rectangular bounding box of this shape
-