示例#1
0
        public static TVector3D operator -(TVector3D a, TVector3D b)
        {
            double    n   = a.x - b.x;
            double    m   = a.y - b.y;
            double    k   = a.z - b.z;
            TVector3D vec = new TVector3D(n, m, k);

            return(vec);
        }
示例#2
0
 public void VecEquals(TVector3D vec)
 {
     if (x == vec.x && y == vec.y && z == vec.z)
     {
         Console.WriteLine("Vec1 equals Vec2");
     }
     else
     {
         Console.WriteLine("Vec1 not equals to vec2");
     }
 }
示例#3
0
 public TVector3D(TVector3D vec)
 {
     this.x = vec.x;
     this.y = vec.y;
     this.z = vec.z;
 }