Logo
Quat.h
1#pragma once
2
3namespace SharpKmyMath {
4
5 public value struct Quat {
6
7 public:
8 float x, y, z, w;
9
10 Quat(float x, float y, float z, float w)
11 {
12 this->x = x;
13 this->y = y;
14 this->z = z;
15 this->w = w;
16 }
17
19 void setFromMatrix(Matrix4 mtx);
20 void setFromVector(Vector3 axis, f32 angle);
21
22 static Quat identity();
23 static Quat operator*(Quat q1, Quat q2);
24 static Quat slerp(Quat q1, Quat q2, f32 param);
25 };
26}
Definition: Matrix4.h:10
Definition: RefCapture.h:3
Definition: Quat.h:5
float z
Definition: Quat.h:8
Quat(float x, float y, float z, float w)
Definition: Quat.h:10
void setFromMatrix(Matrix4 mtx)
Definition: Quat.cpp:39
static Quat operator*(Quat q1, Quat q2)
Definition: Quat.cpp:57
void setFromVector(Vector3 axis, f32 angle)
Definition: Quat.cpp:49
static Quat identity()
Definition: Quat.cpp:17
float w
Definition: Quat.h:8
float x
Definition: Quat.h:8
Matrix4 convertToMatrix()
Definition: Quat.cpp:25
static Quat slerp(Quat q1, Quat q2, f32 param)
Definition: Quat.cpp:67
float y
Definition: Quat.h:8
Definition: Vector3.h:8