contains method

bool contains(
  1. LatLng point
)

return true if the given point was inside the bounds.

Implementation

bool contains(LatLng point) {
  bool h,v;
  if (east>west){
    h=point.lng >= west &&
        point.lng <= east;
  }else{
    h=(point.lng >= west && point.lng<=180)||
        (point.lng <= east&&point.lng>=-180);
  }
   v=point.lat <= north &&
        point.lat >= south;

  return h&&v;
       }