prime/include/Kyoto/Math/CNUQuaternion.hpp

21 lines
387 B
C++
Raw Normal View History

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