예제 #1
0
        public double Getdistance(RoadpointReader.TaskFileData goal, soGeoPoint V)
        {
            double deltax = goal.x - V.x;
            double deltay = goal.y - V.y;

            return(Math.Sqrt(deltax * deltax + deltay * deltay));//得到距离
        }
예제 #2
0
        public double Getdistance(double x1, double y1, RoadpointReader.TaskFileData V)
        {
            double deltax = x1 - V.x;
            double deltay = y1 - V.y;

            return(Math.Sqrt(deltax * deltax + deltay * deltay));//得到距离
        }