extend method

void extend(
  1. LatLng latLng
)

Expands bounding box by latLng coordinate point. This method mutates the bounds object on which it is called.

Implementation

void extend(LatLng latLng) {
  north = min(maxLatitude, max(north, latLng.latitude));
  south = max(minLatitude, min(south, latLng.latitude));
  east = min(maxLongitude, max(east, latLng.longitude));
  west = max(minLongitude, min(west, latLng.longitude));
}