contains method

bool contains(
  1. Coords coords
)

Whether the given coordinates are within this bounding box.

Implementation

bool contains(Coords coords) {
  return coords.latitude >= southwest.latitude &&
      coords.latitude <= northeast.latitude &&
      coords.longitude >= southwest.longitude &&
      coords.longitude <= northeast.longitude;
}