Пример #1
0
        public double DistanceTo(DecardPoint p)
        {
            double dx = p.x - x;
            double dy = p.y - y;
            double dz = p.z - z;

            return(Math.Sqrt(dx * dx + dy * dy + dz * dz));
        }
Пример #2
0
 public Vector(DecardPoint A)
 {
     i = A.x;
     j = A.y;
     k = A.z;
 }
Пример #3
0
 public Vector(DecardPoint A, DecardPoint B)
 {
     i = B.x - A.x;
     j = B.y - A.y;
     k = B.z - A.z;
 }