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); }
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"); } }
public TVector3D(TVector3D vec) { this.x = vec.x; this.y = vec.y; this.z = vec.z; }