2022-09-18 05:55:13 +00:00
|
|
|
#ifndef _CNUQUATERNION_HPP
|
|
|
|
#define _CNUQUATERNION_HPP
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-10-05 16:28:37 +00:00
|
|
|
class CMatrix3f;
|
2022-09-18 05:55:13 +00:00
|
|
|
class CNUQuaternion {
|
|
|
|
public:
|
|
|
|
CNUQuaternion(f32 w, f32 x, f32 y, f32 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);
|
2022-09-18 05:55:13 +00:00
|
|
|
private:
|
|
|
|
f32 w;
|
|
|
|
f32 x;
|
|
|
|
f32 y;
|
|
|
|
f32 z;
|
|
|
|
};
|
|
|
|
|
2022-09-18 06:05:46 +00:00
|
|
|
#endif
|