Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TVector
- {
- public:
- double _x, _y, _z;
- TVector(void);
- TVector(double vecx, double vecy, double vecz);
- // Function that adds two 3D vectors together.
- static TVector AddVectors(TVector vector1, TVector vector2, TVector vector_result);
- // Function that subtracts two 3D vectors together.
- static TVector SubVectors(TVector vector1, TVector vector2, TVector vector_result);
- // Function that Crosses two 3D vectors together.
- static TVector CrossVectors(TVector vector1, TVector vector2, TVector vector_result);
- //Function that finds the Magnitude of a 3D vectors.
- static double MagnitudeVectors(TVector vector1);
- // Function that finds the Unit of a 3D vectors.
- static TVector UnitVectors(TVector vector1, TVector vector_result);
- // Function that Inverts a 3D vectors.
- static TVector InvertVectors(TVector vector1, TVector vector_result);
- // Function that finds the Dot Produc of two 3D vectors.
- static double DotProductVectors(TVector vector1, TVector vector2, double result);
- };
Add Comment
Please, Sign In to add comment