mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-13 23:26:20 +00:00
@@ -9,13 +9,23 @@
|
||||
class CQuaternion {
|
||||
public:
|
||||
CQuaternion(f32 w, f32 x, f32 y, f32 z) : w(w), x(x), y(y), z(z) {}
|
||||
// __ct__11CQuaternionFfRC9CVector3f
|
||||
|
||||
// CQuaternion(const CQuaternion& other)
|
||||
// : w(other.w)
|
||||
// , x(other.x)
|
||||
// , y(other.y)
|
||||
// , z(other.z) {}
|
||||
// CQuaternion& operator=(const CQuaternion& other) {
|
||||
// w = other.w;
|
||||
// x = other.x;
|
||||
// y = other.y;
|
||||
// z = other.z;
|
||||
// }
|
||||
|
||||
CQuaternion operator*(const CQuaternion&) const;
|
||||
// __amu__11CQuaternionFRC11CQuaternion
|
||||
// ScalarVector__11CQuaternionFfRC9CVector3f
|
||||
// Slerp__11CQuaternionFRC11CQuaternionRC11CQuaternionf
|
||||
// ShortestRotationArc__11CQuaternionFRC9CVector3fRC9CVector3f
|
||||
// LookAt__11CQuaternionFRC13CUnitVector3fRC13CUnitVector3fRC9CRelAngle
|
||||
@@ -33,6 +43,13 @@ public:
|
||||
// BuildTransform__11CQuaternionCFv
|
||||
CTransform4f BuildTransform4f() const;
|
||||
CTransform4f BuildTransform4f(const CVector3f&) const;
|
||||
CQuaternion BuildInverted() const {
|
||||
// f64 w = this->w;
|
||||
// f64 x = -this->x;
|
||||
// f64 y = -this->y;
|
||||
// f64 z = -this->z;
|
||||
return CQuaternion(w, -x, -y, -z);
|
||||
}
|
||||
|
||||
static CQuaternion FromMatrixRows(const CVector3f&, const CVector3f&, const CVector3f&);
|
||||
static CQuaternion FromMatrix(const CMatrix3f&);
|
||||
|
||||
Reference in New Issue
Block a user