From ddcb64daea71102051786036710e1d76681af1bc Mon Sep 17 00:00:00 2001 From: Eric-Paul I Date: Thu, 9 Mar 2023 03:34:45 +0100 Subject: [PATCH] Changed position_T to some vectors --- kernel/inc/utils/math.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/kernel/inc/utils/math.h b/kernel/inc/utils/math.h index 2ef7a10..3e18e96 100644 --- a/kernel/inc/utils/math.h +++ b/kernel/inc/utils/math.h @@ -35,7 +35,20 @@ typedef struct { uint64_t x; uint64_t y; -} position_T; +} math_vector_2i_T + +typedef struct { + uint64_t x; + uint64_t y; + uint64_t z; +} math_vector_3i_T + +typedef struct { + uint64_t x; + uint64_t y; + uint64_t z; + uint64_t w; +} math_vector_4i_T uint64_t pow (uint64_t base, uint64_t exp); uint64_t abs (int64_t n);