summaryrefslogtreecommitdiff
path: root/src/math/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/math.h')
-rw-r--r--src/math/math.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/math/math.h b/src/math/math.h
index 8793336..e63c603 100644
--- a/src/math/math.h
+++ b/src/math/math.h
@@ -151,9 +151,9 @@ extern Vec3 vec3zero; /*(0,0,0)*/
extern Vec2 vec2zero; /*(0,0,0)*/
extern Vec4 vec4zero; /*(0,0,0)*/
-#define zerovec3 {0, 0, 0}
#define zerovec2 {0, 0}
-#define zerovec4 {0, 0, 0}
+#define zerovec3 {0, 0, 0}
+#define zerovec4 {0, 0, 0, 0}
void vec3_tostring(Vec3* v, char buf[]);
void vec3_print(Vec3* v);
@@ -186,6 +186,9 @@ void vec4_lerp(Vec4* a, Vec4* b, float t, Vec4* out);
void vec4_scale(Vec4* v, float t, Vec4* out);
+void vec4_add(Vec4* v1, Vec4* v2, Vec4* out);
+
+
/************************************************************************/
/* Matrix */
/************************************************************************/