public bool isValidForGpsLocation(GpsLocation gpsLoc) { return this.centerImgArea.contains(gpsLoc.getLatitude(), gpsLoc.getLongitude()); }
private double getLocationsDistance(GpsLocation gl1, GpsLocation gl2) { // distance between two points return Math.Sqrt(Math.Pow(gl2.getLatitude() - gl1.getLatitude(), 2) + Math.Pow(gl2.getLongitude() - gl1.getLongitude(), 2)); }