2022-08-13 02:48:34 +00:00
|
|
|
#ifndef _CQUATERNION_HPP
|
|
|
|
#define _CQUATERNION_HPP
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
class CQuaternion {
|
2022-08-14 18:38:41 +00:00
|
|
|
public:
|
|
|
|
CQuaternion(f32 w, f32 x, f32 y, f32 z) : w(w), x(x), y(y), z(z) {}
|
2022-09-18 05:55:13 +00:00
|
|
|
// CQuaternion(const CQuaternion& other)
|
|
|
|
// : w(other.w)
|
|
|
|
// , x(other.x)
|
|
|
|
// , y(other.y)
|
|
|
|
// , z(other.z) {}
|
|
|
|
|
|
|
|
static const CQuaternion& NoRotation() { return sNoRotation; }
|
2022-08-14 18:38:41 +00:00
|
|
|
|
2022-08-13 02:48:34 +00:00
|
|
|
private:
|
|
|
|
f32 w;
|
|
|
|
f32 x;
|
|
|
|
f32 y;
|
|
|
|
f32 z;
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
static const CQuaternion sNoRotation;
|
2022-08-13 02:48:34 +00:00
|
|
|
};
|
|
|
|
|
2022-09-18 06:05:46 +00:00
|
|
|
#endif
|