extend method

void extend(
  1. LatLng point
)

expend this bounds in order to containe the given point

Implementation

void extend(LatLng point){
  if(!contains(point)){
    if(west>point.lng){west=point.lng;}
    if(east<point.lng){east=point.lng;}
    if(south>point.lat){south=point.lat;}
    if(north<point.lat){north=point.lat;}
  }
}