summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/lib/math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/lib/math.h b/include/lib/math.h
index a8951eb4..a39974cc 100644
--- a/include/lib/math.h
+++ b/include/lib/math.h
@@ -32,6 +32,14 @@ typedef struct {
/* c */
} Vec3p;
+extern "C" void Vec3p_Add(Vec3p *a, Vec3p *b, Vec3p *out);
+extern "C" void Vec3p_Sub(Vec3p *a, Vec3p *b, Vec3p *out);
+extern "C" q20 Vec3p_Dot(Vec3p *a, Vec3p *b);
+extern "C" void Vec3p_Cross(Vec3p *a, Vec3p *b, Vec3p *out);
+extern "C" q20 Vec3p_Length(Vec3p *a);
+extern "C" void Vec3p_Normalize(Vec3p *vec, Vec3p *out);
+extern "C" void Vec3p_Axpy(q20 a, Vec3p *x, Vec3p *y, Vec3p *out);
+
typedef struct {
/* 00 */ q20 x;
/* 04 */ q20 y;