rest of animation coding

animation , animator , keyframe & quaterions
compiling but not debuged at all
This commit is contained in:
Youssef Assem
2019-12-17 04:48:20 +02:00
parent 23dd149d48
commit c2882035b5
16 changed files with 492 additions and 17 deletions
+17
View File
@@ -0,0 +1,17 @@
#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);
};