From b5764f424aacbc9f67e57ab4359c61d6322eee98 Mon Sep 17 00:00:00 2001 From: Aetias Date: Sun, 19 May 2024 12:58:22 +0200 Subject: Name `Vec3p` functions and `abs` --- include/lib/math.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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; -- cgit v1.2.3