mirror of
https://github.com/zeldaret/ss
synced 2026-05-30 00:46:41 -04:00
27 lines
720 B
C++
27 lines
720 B
C++
#pragma once
|
|
|
|
#include "types.h"
|
|
#include "egg/math/eggVector.h"
|
|
|
|
namespace EGG
|
|
{
|
|
|
|
class Quatf {
|
|
public:
|
|
f32 x,y,z,w;
|
|
public:
|
|
Quatf() {}
|
|
// could also be void set(f32, f32, f32, f32);
|
|
/* 8049b390 */ Quatf(f32 fx, f32 fy, f32 fz, f32 fw);
|
|
/* 8049b3b0 */ void setAxisRotation(const Vector3f&, f32);
|
|
/* 8049b450 */ f32 norm();
|
|
/* 8049b480 */ void normalise();
|
|
/* 8049b500 */ void conjugate();
|
|
/* 8049b550 */ Vector3f rotateVector(const Vector3f&);
|
|
/* 8049b800 */ void slerpTo(const Quatf&, f32, Quatf& out) const;
|
|
/* 8049b800 */ void slerpTo(const Quatf&, f32, f32, Quatf& out) const;
|
|
/* 8049bbb0 */ void makeVectorRotation(Vector3f&, Vector3f&);
|
|
};
|
|
|
|
} // namespace EGG
|