Beispiel #1
0
 public static double CalcDistance(Point3D first, Point3D second)
 {
     return Math.Sqrt(
         (first.XCoord - second.XCoord) * (first.XCoord - second.XCoord) +
         (first.YCoord - second.YCoord) * (first.YCoord - second.YCoord) +
         (first.ZCoord - second.ZCoord) * (first.ZCoord - second.ZCoord));
 }
Beispiel #2
0
 public void AddPoint(Point3D point)
 {
     this.trail.Add(point);
 }