Class BoundingBox
- java.lang.Object
-
- org.optaweb.vehiclerouting.service.region.BoundingBox
-
public class BoundingBox extends Object
Bounding box.
-
-
Constructor Summary
Constructors Constructor Description BoundingBox(Coordinates southWest, Coordinates northEast)Create bounding box.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinatesgetNorthEast()North-east corner of the bounding box.CoordinatesgetSouthWest()South-west corner of the 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)
-
-