summaryrefslogtreecommitdiff
path: root/maths.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-27 15:43:22 +1000
committerquou <quou@disroot.org>2024-07-27 15:43:22 +1000
commitb8b18d982af8cc8e10372f90c6c7bff4f0b58f69 (patch)
tree08f66b35a64f729f3dfe1a21ec6e1763bff066eb /maths.h
parent629a24052f77529cc306cbd355f57a48ba3ff49d (diff)
vec_add, vec_sub and vec_dist
Diffstat (limited to 'maths.h')
-rw-r--r--maths.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/maths.h b/maths.h
index e72f8fd..725e401 100644
--- a/maths.h
+++ b/maths.h
@@ -44,6 +44,9 @@ int* vec_ref(int* d, const int* i, const int* n, int c);
int vec_dot(const int* a, const int* b, int d);
int* vec_nrm(int* d, const int* a, int c);
int* vec_minise(int* d, const int* a, int c);
+int* vec_sub(int* d, const int* a, const int* b, int c);
+int* vec_add(int* d, const int* a, const int* b, int c);
+int vec_dist(int* w, const int* a, const int* b, int c);
int* persp(int* v, int asp);
int* ndc2clip(const int* c, int* p);