prime/include/Kyoto/Math/CNUQuaternion.hpp

22 lines
414 B
C++
Raw Normal View History

#ifndef _CNUQUATERNION
#define _CNUQUATERNION
#include "types.h"
2022-10-05 16:28:37 +00:00
class CMatrix3f;
class CNUQuaternion {
public:
CNUQuaternion(float w, float x, float y, float z) : w(w), x(x), y(y), z(z) {}
2022-10-05 16:28:37 +00:00
static CNUQuaternion BuildFromMatrix3f(const CMatrix3f& matrix);
2022-10-05 22:50:12 +00:00
static CNUQuaternion BuildFromQuaternion(const CQuaternion& quat);
private:
float w;
float x;
float y;
float z;
};
#endif // _CNUQUATERNION