Interface Shape

All Known Implementing Classes:
BBox, Circle, Polygon

public interface Shape
A shape interface to implement circles, polygons or rectangles.
Author:
Peter Karich
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(double lat, double lon)
     
     
    boolean
    intersects(PointList pointList)
     
  • Method Details

    • intersects

      boolean intersects(PointList pointList)
    • 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