Class BoundingBox


  • public class BoundingBox
    extends Object
    Bounding box.
    • Constructor Detail

      • BoundingBox

        public BoundingBox​(Coordinates southWest,
                           Coordinates northEast)
        Create bounding box. The box must have non-zero dimensions and the corners must be south-west and north-east.
        Parameters:
        southWest - south-west corner (minimal latitude and longitude)
        northEast - north-east corner (maximal latitude and longitude)
    • Method Detail

      • getSouthWest

        public Coordinates getSouthWest()
        South-west corner of the bounding box.
        Returns:
        south-west corner (minimal latitude and longitude)
      • getNorthEast

        public Coordinates getNorthEast()
        North-east corner of the bounding box.
        Returns:
        north-east corner (maximal latitude and longitude)