Matrix3DStack.h 304 B

123456789101112131415161718192021
  1. #ifndef MATRIX3DSTACK_H
  2. #define MATRIX3DSTACK_H
  3. #include "client/math/Matrix3D.h"
  4. class Matrix3DStack
  5. {
  6. public:
  7. Matrix3DStack();
  8. void pop();
  9. void push();
  10. Matrix3D& get();
  11. private:
  12. static const int STACK_SIZE = 10;
  13. Matrix3D stack[STACK_SIZE];
  14. int index = 0;
  15. };
  16. #endif