feat(quaternion): add C4Quaternion

This commit is contained in:
fallenoak 2022-12-24 17:30:47 -06:00
parent b17b7a18e6
commit 189085960f
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
4 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#ifndef TEMPEST_QUATERNION_C_4QUATERNION_HPP
#define TEMPEST_QUATERNION_C_4QUATERNION_HPP
class C4Quaternion {
public:
// Static functions
static C4Quaternion Nlerp(float ratio, const C4Quaternion& q1, const C4Quaternion& q2);
// Member variables
float x = 0.0f;
float y = 0.0f;
float z = 0.0f;
float w = 1.0f;
// Member functions
C4Quaternion() = default;
C4Quaternion(float x, float y, float z, float w)
: x(x)
, y(y)
, z(z)
, w(w) {};
};
#endif