Guest User

Untitled

a guest
Apr 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. class TVector
  2. {
  3. public:
  4.  
  5. double _x, _y, _z;
  6.  
  7. TVector(void);
  8.  
  9. TVector(double vecx, double vecy, double vecz);
  10.  
  11.  
  12.  
  13. // Function that adds two 3D vectors together.
  14. static TVector AddVectors(TVector vector1, TVector vector2, TVector vector_result);
  15.  
  16. // Function that subtracts two 3D vectors together.
  17. static TVector SubVectors(TVector vector1, TVector vector2, TVector vector_result);
  18.  
  19. // Function that Crosses two 3D vectors together.
  20. static TVector CrossVectors(TVector vector1, TVector vector2, TVector vector_result);
  21.  
  22. //Function that finds the Magnitude of a 3D vectors.
  23. static double MagnitudeVectors(TVector vector1);
  24.  
  25. // Function that finds the Unit of a 3D vectors.
  26. static TVector UnitVectors(TVector vector1, TVector vector_result);
  27.  
  28. // Function that Inverts a 3D vectors.
  29. static TVector InvertVectors(TVector vector1, TVector vector_result);
  30.  
  31. // Function that finds the Dot Produc of two 3D vectors.
  32. static double DotProductVectors(TVector vector1, TVector vector2, double result);
  33.  
  34.  
  35. };
Add Comment
Please, Sign In to add comment