Пример #1
0
        public static double DistanceCalculation(Point3D firstPoint, Point3D secondPoint)
        {
            double result = Math.Sqrt(((firstPoint.X - secondPoint.X) * (firstPoint.X - secondPoint.X)) +
                                      ((firstPoint.Y - secondPoint.Y) * (firstPoint.Y - secondPoint.Y)) +
                                      ((firstPoint.Z - secondPoint.Z) * (firstPoint.Z - secondPoint.Z)));

            return result;
        }
Пример #2
0
 public void AddPoint(Point3D point)
 {
     Paths.Add(point);
 }