Ejemplo n.º 1
0
 public bool isValidForGpsLocation(GpsLocation gpsLoc)
 {
     return this.centerImgArea.contains(gpsLoc.getLatitude(), gpsLoc.getLongitude());
 }
Ejemplo n.º 2
0
 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));
 }