Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CTRANSFORMH
- #define CTRANSFORMH
- #include "Vertex3d.h"
- #define PI 3.14159265358979323846
- /**
- * 4x4 Matrix class
- */
- class CTransform {
- public:
- double* matrix;
- CTransform();
- CTransform& Transform(Vertex3d v);
- CTransform& Translate(Vertex3d v);
- CTransform& Scale(Vertex3d v);
- CTransform& LoadIdentity();
- void Multiply(double* targetmatrix,double* multiplier);
- CTransform& operator* (CTransform& rkM);
- CTransform operator*=(CTransform b);
- double* operator[](int row);
- Vertex3d GetColumn(int column);
- Vertex3d GetRow(int row);
- CTransform& SetColumn(int column, Vertex3d v);
- CTransform& SetRow(int row, Vertex3d v);
- CTransform& Rotate(double angle, Vertex3d v);
- private:
- int I (int row, int col) const;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement