summaryrefslogtreecommitdiff
path: root/src/maths/maths.h
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-30 23:15:36 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-30 23:15:36 +1100
commitf26f084958550cd01b9e4e4b098551520a4c6852 (patch)
tree1b835288f94461ba86aca8cff723d3364556db52 /src/maths/maths.h
parentb4cb698d177ada97c976eab059eabedd433abfd0 (diff)
parentc20740ecbb008afbe93c7fa1eb35851cedc6eb42 (diff)
Merge branch 'cel-60-scaffold-vulkan' into cleanroom-vulkan
Diffstat (limited to 'src/maths/maths.h')
-rw-r--r--src/maths/maths.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/maths/maths.h b/src/maths/maths.h
index db63072..41fbdfc 100644
--- a/src/maths/maths.h
+++ b/src/maths/maths.h
@@ -9,6 +9,7 @@
#pragma once
#include <math.h>
+#include <stdio.h>
#include "maths_types.h"
// --- Helpers
@@ -48,6 +49,8 @@ static inline vec3 vec3_cross(vec3 a, vec3 b) {
#define VEC3_Z ((vec3){ .x = 0.0, .y = 0.0, .z = 1.0 })
#define VEC3_NEG_Z ((vec3){ .x = 0.0, .y = 0.0, .z = -1.0 })
+static inline void print_vec3(vec3 v) { printf("{ x: %f, y: %f, z: %f )\n", v.x, v.y, v.z); }
+
// TODO: Dimension 2
static inline vec2 vec2_create(f32 x, f32 y) { return (vec2){ x, y }; }