mirror of https://github.com/AxioDL/zeus.git
Add CNUQuaternion
This commit is contained in:
parent
0b0a83ea87
commit
5c650d3a48
|
@ -213,6 +213,17 @@ public:
|
||||||
static const CQuaternion skNoRotation;
|
static const CQuaternion skNoRotation;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class alignas(16) CNUQuaternion : public CQuaternion
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CNUQuaternion() = default;
|
||||||
|
CNUQuaternion(const CQuaternion& other)
|
||||||
|
{
|
||||||
|
*this = other;
|
||||||
|
normalize();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
CQuaternion operator+(float lhs, const CQuaternion& rhs);
|
CQuaternion operator+(float lhs, const CQuaternion& rhs);
|
||||||
CQuaternion operator-(float lhs, const CQuaternion& rhs);
|
CQuaternion operator-(float lhs, const CQuaternion& rhs);
|
||||||
CQuaternion operator*(float lhs, const CQuaternion& rhs);
|
CQuaternion operator*(float lhs, const CQuaternion& rhs);
|
||||||
|
|
Loading…
Reference in New Issue