public static double Distance(double lat1, double lon1, double lat2, double lon2)
        {
            var pos1 = new MathPosition (lat1, lon1);
            var pos2 = new MathPosition (lat2, lon2);

            return pos1.Distance (pos2);
        }
        public static double Distance(double lat1, double lon1, double lat2, double lon2)
        {
            var pos1 = new MathPosition(lat1, lon1);
            var pos2 = new MathPosition(lat2, lon2);

            return(pos1.Distance(pos2));
        }
 public bool HasPositionInItsRadius(MathPosition obj, int radiusMeters)
 {
     return this.Distance(obj) <= radiusMeters;
 }
 public double Distance(MathPosition obj)
 {
     return Distance(obj.Latitude, obj.Longitude);
 }
 public double Distance(MathPosition obj)
 {
     return(Distance(obj.Latitude, obj.Longitude));
 }
 public bool HasPositionInItsRadius(MathPosition obj, int radiusMeters)
 {
     return(this.Distance(obj) <= radiusMeters);
 }