mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-21 10:49:15 +00:00
Additional quaternion functions
This commit is contained in:
@@ -259,6 +259,9 @@ public:
|
||||
static CQuaternion slerp(const CQuaternion& a, const CQuaternion& b, double t);
|
||||
static CQuaternion slerpShort(const CQuaternion& a, const CQuaternion& b, double t);
|
||||
static CQuaternion nlerp(const CQuaternion& a, const CQuaternion& b, double t);
|
||||
static CQuaternion shortestRotationArc(const zeus::CVector3f& v0, const zeus::CVector3f& v1);
|
||||
static CQuaternion clampedRotateTo(const zeus::CVector3f& v0, const zeus::CVector3f& v1,
|
||||
const zeus::CRelAngle& angle);
|
||||
|
||||
inline float roll() const { return std::atan2(2.f * (x * y + w * z), w * w + x * x - y * y - z * z); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user