rest of animation coding
animation , animator , keyframe & quaterions compiling but not debuged at all
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user