Matrix.h 442 B

1234567891011121314151617181920212223242526
  1. //
  2. // Created by janco on 6/21/16.
  3. //
  4. #ifndef CRYSTALPOINT_MATRIX_H
  5. #define CRYSTALPOINT_MATRIX_H
  6. class Matrix {
  7. private:
  8. public:
  9. float *data;
  10. Matrix(int i = 4);
  11. ~Matrix();
  12. static Matrix rotation(int angle, Vec3f axis);
  13. static Matrix identity(void);
  14. static Matrix translate(Vec3f offset);
  15. Matrix operator * (Matrix m1, Matrix m2);
  16. Vec3f operator * (Matrix m, Vec3f v);
  17. }
  18. #endif //CRYSTALPOINT_MATRIX_H