Interface S2Region

    • Method Detail

      • getCapBound

        S2Cap getCapBound()
        Return a bounding spherical cap.
      • getRectBound

        S2LatLngRect getRectBound()
        Return a bounding latitude-longitude rectangle.
      • contains

        boolean contains​(S2Cell cell)
        If this method returns true, the region completely contains the given cell. Otherwise, either the region does not contain the cell or the containment relationship could not be determined.
      • contains

        boolean contains​(S2Point p)
        Returns true if and only if the given point is contained by the region. p is generally required to be unit length, although some subtypes may relax this restriction.
      • mayIntersect

        boolean mayIntersect​(S2Cell cell)
        If this method returns false, the region does not intersect the given cell. Otherwise, either region intersects the cell, or the intersection relationship could not be determined.