示例#1
0
        private double khoangCach(ToaDo a, ToaDo b)
        {
            Coordinates toaDo1 = new Coordinates(a);
            Coordinates toaDo2 = new Coordinates(b);
            double      doDai  = CoordinatesDistanceExtensions.DistanceTo(toaDo1, toaDo2) * 1000;// đơn vị là mét.

            return(doDai);
        }
示例#2
0
 public Coordinates(ToaDo toaDo)
 {
     Latitude  = toaDo.getX();
     Longitude = toaDo.getY();
 }