Пример #1
0
 public static MemorySafe_CartVect CreateMemorySafe_Vector(CartCoord cd1, CartCoord cd2)
 {
     double X = cd2.X - cd1.X;
     double Y = cd2.Y - cd1.Y;
     double Z = cd2.Z - cd1.Z;
     MemorySafe_CartVect vector = new MemorySafe_CartVect(X, Y, Z);
     return vector;
 }
Пример #2
0
 public static CartVect CreateVector(CartCoord cd1, CartCoord cd2)
 {
     CartVect vector = new CartVect();
     vector.X = cd2.X - cd1.X;
     vector.Y = cd2.Y - cd1.Y;
     vector.Z = cd2.Z - cd1.Z;
     return vector;
 }
Пример #3
0
 public static MemorySafe_CartCoord convertToMemorySafeCoord(CartCoord coord)
 {
     MemorySafe_CartCoord memCoord = new MemorySafe_CartCoord(coord.X, coord.Y, coord.Z);
     return memCoord;
 }