2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CMATRIX3F
|
|
|
|
#define _CMATRIX3F
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
|
|
|
class CMatrix3f {
|
2022-10-05 16:28:37 +00:00
|
|
|
static const CMatrix3f sIdentity;
|
2022-10-09 05:13:17 +00:00
|
|
|
|
2022-09-18 05:55:13 +00:00
|
|
|
public:
|
2022-10-05 16:28:37 +00:00
|
|
|
CMatrix3f(const CMatrix3f&);
|
2022-10-05 17:24:06 +00:00
|
|
|
const CMatrix3f& operator=(const CMatrix3f& other);
|
2022-09-18 05:55:13 +00:00
|
|
|
|
2022-10-05 17:24:06 +00:00
|
|
|
static const CMatrix3f& Identity() { return sIdentity; }
|
2022-10-09 05:13:17 +00:00
|
|
|
|
2022-10-17 15:02:11 +00:00
|
|
|
CMatrix3f Orthonormalized() const;
|
|
|
|
|
2022-09-18 05:55:13 +00:00
|
|
|
private:
|
2022-10-09 05:37:23 +00:00
|
|
|
// TODO maybe individual floats
|
2022-09-18 05:55:13 +00:00
|
|
|
CVector3f m0;
|
|
|
|
CVector3f m1;
|
|
|
|
CVector3f m2;
|
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CMatrix3f, 0x24);
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CMATRIX3F
|