| 94 | |
| 95 | /// Returns a new box that contains both this box and `point`. |
| 96 | public MapBounds extend(LatLng point) { |
| 97 | return new MapBounds( |
| 98 | new LatLng(Math.min(southWest.getLatitude(), point.getLatitude()), |
| 99 | Math.min(southWest.getLongitude(), point.getLongitude())), |
| 100 | new LatLng(Math.max(northEast.getLatitude(), point.getLatitude()), |
| 101 | Math.max(northEast.getLongitude(), point.getLongitude()))); |
| 102 | } |
| 103 | |
| 104 | /// The span between the north and south edges in degrees. |
| 105 | public double getLatitudeSpan() { |