Interface OSHDBBoundable

    • Method Detail

      • getMinLongitude

        int getMinLongitude()
        Returns the minimum longitude in osm-coordinate-system.
        Returns:
        minimum longitude
      • getMinLatitude

        int getMinLatitude()
        Returns the minimum latitude in osm-coordinate-system.
        Returns:
        minimum latitude
      • getMaxLongitude

        int getMaxLongitude()
        Returns the maximum longitude in osm-coordinate-system.
        Returns:
        maximum longitude
      • getMaxLatitude

        int getMaxLatitude()
        Returns the maximum latitude in osm-coordinate-system.
        Returns:
        maximum latitude
      • intersects

        default boolean intersects​(OSHDBBoundable other)
        Calculates the intersection between this and other OSHDBBoundable.
        Parameters:
        other - the OSHDBBoundable
        Returns:
        the intersection between this and other OSHDBBoundable
      • coveredBy

        default boolean coveredBy​(OSHDBBoundable other)
        Returns true if this OSHDBBoundable is inside/coveredBy the other object.
        Parameters:
        other - the OSHDBBoundable which is being checked for inside/coveredBy this OSHDBBoundable
        Returns:
        true if the OSHDBBoundable is inside
      • isPoint

        default boolean isPoint()
        Checks if this OSHDBBoundable collapsed to a single point.
        Returns:
        true if collapsed to a single point
      • isValid

        default boolean isValid()
        Checks if this OSHDBBoundable describes a valid boundable.
        Returns:
        true, if this OSHDBBoundable is valid
      • intersection

        default OSHDBBoundingBox intersection​(OSHDBBoundable other)
        Calculates the intersection of this and other bounding boxes.
        Parameters:
        other - the bounding box for which to get the intersection
        Returns:
        the intersection of the two bboxes