prime/include/Kyoto/Math/CNUQuaternion.hpp
Luke Street 7ca3a1c0bb Replace int types in Retro code
Retro seemingly avoided using the Dolphin
typedefs in most places, opting to use int/uint
instead. This likely means they didn't use
u8/s8/u16/s16/etc either.


Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
2022-10-09 01:37:23 -04:00

22 lines
414 B
C++

#ifndef _CNUQUATERNION
#define _CNUQUATERNION
#include "types.h"
class CMatrix3f;
class CNUQuaternion {
public:
CNUQuaternion(float w, float x, float y, float z) : w(w), x(x), y(y), z(z) {}
static CNUQuaternion BuildFromMatrix3f(const CMatrix3f& matrix);
static CNUQuaternion BuildFromQuaternion(const CQuaternion& quat);
private:
float w;
float x;
float y;
float z;
};
#endif // _CNUQUATERNION