diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2021-06-13 19:06:41 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2021-06-13 19:06:41 -0400 |
commit | 3de127d797a8183d4e2d68f9e8da0ba5d336cfd1 (patch) | |
tree | b6f08558ed2952a0c3e6f31605416bfabd531242 /arm9/lib/src/FX_vec.c | |
parent | 53ac2be5cf4064c9e5df4a97f4233b7014acb004 (diff) |
Finish decomping unk_0201E7D8
Diffstat (limited to 'arm9/lib/src/FX_vec.c')
-rw-r--r-- | arm9/lib/src/FX_vec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arm9/lib/src/FX_vec.c b/arm9/lib/src/FX_vec.c index 4ea65e96..8550b54a 100644 --- a/arm9/lib/src/FX_vec.c +++ b/arm9/lib/src/FX_vec.c @@ -1,13 +1,13 @@ #include "global.h" #include "fx.h" -ARM_FUNC void VEC_Add(struct Vecx32 *a, struct Vecx32 *b, struct Vecx32 *dst){ +ARM_FUNC void VEC_Add(const struct Vecx32 *a, const struct Vecx32 *b, struct Vecx32 *dst){ dst->x = a->x + b->x; dst->y = a->y + b->y; dst->z = a->z + b->z; } -ARM_FUNC void VEC_Subtract(struct Vecx32 *a, struct Vecx32 *b, struct Vecx32 *dst){ +ARM_FUNC void VEC_Subtract(const struct Vecx32 *a, const struct Vecx32 *b, struct Vecx32 *dst){ dst->x = a->x - b->x; dst->y = a->y - b->y; dst->z = a->z - b->z; @@ -60,7 +60,7 @@ ARM_FUNC fx32 VEC_Mag(struct Vecx32 *a){ return ((fx32)reg_CP_SQRT_RESULT + 1) >> 1; } -ARM_FUNC void VEC_Normalize(struct Vecx32 *a, struct Vecx32 *dst){ +ARM_FUNC void VEC_Normalize(const struct Vecx32 *a, struct Vecx32 *dst){ fx64 l2 = (fx64)a->x * a->x; l2 += (fx64)a->y * a->y; l2 += (fx64)a->z * a->z; |