Files
Youssef Assem c2882035b5 rest of animation coding
animation , animator , keyframe & quaterions
compiling but not debuged at all
2019-12-17 04:48:20 +02:00

18 lines
340 B
C++

#pragma once
#include "geometry.h"
class Quaternion
{
private:
float x_, y_, z_, w_;
public:
Quaternion() = default;
Quaternion(float x, float y, float z, float w);
void normalize();
Matrix toRotationMatrix();
static Quaternion fromMatrix(Matrix matrix);
static Quaternion interpolate(Quaternion a, Quaternion b, float blend);
};