Add CNUQuaternion

This commit is contained in:
Phillip Stephens 2016-08-30 17:32:28 -07:00
parent 0b0a83ea87
commit 5c650d3a48
1 changed files with 11 additions and 0 deletions

View File

@ -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);