diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-26 16:37:53 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-26 16:37:53 +1000 |
commit | f083cacb259054ce996b70f8b9dc0d9eb0bdbfb8 (patch) | |
tree | cfec9813483e139d8f4ca71eefb4ec9a0450826f /src/maths/maths.h | |
parent | 9d11440c145cef897853576b509316bf952cb121 (diff) |
wip egui
Diffstat (limited to 'src/maths/maths.h')
-rw-r--r-- | src/maths/maths.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/maths/maths.h b/src/maths/maths.h index 9b3813c..d235ca8 100644 --- a/src/maths/maths.h +++ b/src/maths/maths.h @@ -143,9 +143,7 @@ c_static_inline Quat quat_slerp(Quat a, Quat b, f32 percentage) { // --- Matrix Implementations -c_static_inline Mat4 mat4_ident() { - return (Mat4){ .data = { 1.0, 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1.0 } }; -} +Mat4 mat4_ident(); c_static_inline Mat4 mat4_translation(Vec3 position) { Mat4 out_matrix = mat4_ident(); |