inCircleCheck function
Check to see if a point is contained in a circle
Implementation
bool inCircleCheck(double latitude, double longitude, double centerLat,
double centerLon, double radius) {
double xDiff = longitude - centerLon;
double yDiff = latitude - centerLat;
if (pow(xDiff, 2) + pow(yDiff, 2) <= pow(radius, 2)) {
return true;
}
return false;
}