summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2024-05-19 12:58:22 +0200
committerAetias <aetias@outlook.com>2024-05-19 12:58:22 +0200
commitb5764f424aacbc9f67e57ab4359c61d6322eee98 (patch)
treed34671f8037e6c726f0b9fd707d444193c46d2a5 /include
parenta573a263baa80af61907c706c917c172aa8e14bb (diff)
Name `Vec3p` functions and `abs`
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;