Interface MBR2D

  • All Known Implementing Classes:
    SimpleMBR2D

    public interface MBR2D
    A minimum bounding rectangle
    • Method Detail

      • getMinX

        double getMinX()
        Get the minimum x value
        Returns:
        the x min value
      • getMinY

        double getMinY()
        Get the minimum y value
        Returns:
        the y min value
      • getMaxX

        double getMaxX()
        Get the maximum x value
        Returns:
        the x max value
      • getMaxY

        double getMaxY()
        Get the maximum y value
        Returns:
        the y max value
      • union

        MBR2D union​(MBR2D mbr)
        Return a new MBR that is the union of this mbr and the other
        Parameters:
        mbr - the MBR to create a union with
        Returns:
        the new MBR
      • intersects

        boolean intersects​(MBR2D other)
        Check if the other MBR intersects this one
        Parameters:
        other - the MBR to check against
        Returns:
        true if the given MBR intersects with this MBR