mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-18 01:15:38 +00:00
Add CNUQuaternion
This commit is contained in:
@@ -213,6 +213,17 @@ public:
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user