mat4 class
This commit is contained in:
17
src/math/gryphn_mat4.h
Normal file
17
src/math/gryphn_mat4.h
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
typedef struct gnMat4x4 {
|
||||||
|
float mat[4][4];
|
||||||
|
} gnMat4x4;
|
||||||
|
typedef gnMat4x4 gnMat4;
|
||||||
|
|
||||||
|
gnMat4x4 gnIdentity() {
|
||||||
|
return (gnMat4x4){
|
||||||
|
.mat = {
|
||||||
|
{ 1.0f, 0.0f, 0.0f, 0.0f },
|
||||||
|
{ 0.0f, 1.0f, 0.0f, 0.0f },
|
||||||
|
{ 0.0f, 0.0f, 1.0f, 0.0f },
|
||||||
|
{ 0.0f, 0.0f, 0.0f, 1.0f }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user