aboutsummaryrefslogtreecommitdiff
path: root/umath/vec.h
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-18 14:14:23 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-18 14:14:23 +0100
commit5f0fce4191309e9526b7109a0d87c092ce6a4193 (patch)
tree105257f876551814aa74a0760ec116bd1bf307a5 /umath/vec.h
parentead78d51e662057467b79d3a65b20c4ba83cbf07 (diff)
main
Diffstat (limited to 'umath/vec.h')
-rw-r--r--umath/vec.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/umath/vec.h b/umath/vec.h
new file mode 100644
index 0000000..b87cae1
--- /dev/null
+++ b/umath/vec.h
@@ -0,0 +1,22 @@
+#ifndef VEC_H
+#define VEC_H
+
+#include <math.h>
+
+float vec2_add (float c[], float a[], float b[]);
+float vec2_sub (float c[], float a[], float b[]);
+float vec2_mul (float c[], float a[], float b);
+float vec2_div (float c[], float a[], float b);
+float vec2_mag (float v[]);
+float vec2_mag2 (float v[]);
+void vec2_norm (float v[]);
+
+float vec3_add (float c[], float a[], float b[]);
+float vec3_sub (float c[], float a[], float b[]);
+float vec3_mul (float c[], float a[], float b);
+float vec3_div (float c[], float a[], float b);
+float vec3_mag (float v[]);
+float vec3_mag2 (float v[]);
+void vec3_norm (float v[]);
+
+#endif \ No newline at end of file