add MatrixCross
Diff: MatrixMath.h
- Revision:
- 0:eb69bbfb6486
- Child:
- 1:c74cdf14aea2
diff -r 000000000000 -r eb69bbfb6486 MatrixMath.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MatrixMath.h Fri Oct 21 03:28:28 2011 +0000 @@ -0,0 +1,48 @@ +/** + * @file: MatrixMath.h + * @author: Ernesto Palacios + * + * Created on 15 de septiembre de 2011, 09:44 AM. + * + * Develop Under GPL v3.0 License + * http://www.gnu.org/licenses/gpl-3.0.html + * + */ + +#ifndef MATRIXMATH_H +#define MATRIXMATH_H + +#include "mbed.h" +#include "Matrix.h" + + +/** + * @brief This class provides STATIC methods to preform operations over + * Matrix Objects. + * + * Methods will be added as neccesary. + * + */ +class MatrixMath{ +public: + + + static Matrix Transpose( const Matrix& matrix ); + + static Matrix Invert( const Matrix& matrix ); + + static float DotProduct( const Matrix& leftM, const Matrix& rightM ); + + static float Det( const Matrix& Mat ); + + static Matrix RotX( const Matrix& matrix, float radians ); + + static Matrix RotY( const Matrix& matrix, float radians ); + + static Matrix RotZ( const Matrix& matrix, float radians ); + + static Matrix Transl( const Matrix& matrix, float x, float y, float z ); + +}; + +#endif /* MATRIXMATH_H */