示例#1
0
        public static double CalculateDistance2D(I2Dimentional firstPoint2D, I2Dimentional secondPoint2D)
        {
            double distance =
                Math.Sqrt(
                    Math.Pow(secondPoint2D.X - firstPoint2D.X, 2) +
                    Math.Pow(secondPoint2D.Y - firstPoint2D.Y, 2));

            return(distance);
        }
示例#2
0
        public static double CalculateDistance2D(I2Dimentional firstPoint2D, I2Dimentional secondPoint2D)
        {
            double distance =
                Math.Sqrt(
                    Math.Pow(secondPoint2D.X - firstPoint2D.X, 2) +
                    Math.Pow(secondPoint2D.Y - firstPoint2D.Y, 2));

            return distance;
        }