summaryrefslogtreecommitdiff
path: root/src/math_util_2.c
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-05-01 10:09:49 -0600
committerKiritoDv <kiritodev01@gmail.com>2024-05-01 10:09:49 -0600
commita2c3feb67a2f8afb1cebd0e77e4a3e23db2c28c4 (patch)
tree4250a53478f87b8b07e16481a634ef16550ddb43 /src/math_util_2.c
parentd5264825f0a7ab67f53fca8857cbd24dd86ee86d (diff)
WIP Compilation
Diffstat (limited to 'src/math_util_2.c')
-rw-r--r--src/math_util_2.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/math_util_2.c b/src/math_util_2.c
index 2afe7f201..d5571ee4b 100644
--- a/src/math_util_2.c
+++ b/src/math_util_2.c
@@ -1,4 +1,4 @@
-#include <ultra64.h>
+#include <libultraship.h>
#include <macros.h>
#include <common_structs.h>
#include "math_util_2.h"
@@ -30,9 +30,9 @@ UNUSED void operator_xor(s32 *arg0, s32 arg1) {
UNUSED bool func_80040E84(s32 *arg0, s32 arg1) {
bool phi_v1;
- phi_v1 = FALSE;
+ phi_v1 = false;
if ((*arg0 & arg1) != 0) {
- phi_v1 = TRUE;
+ phi_v1 = true;
}
return phi_v1;
}
@@ -455,10 +455,10 @@ bool is_particle_on_screen(Vec3f arg0, Camera *arg1, u16 arg2) {
u16 temp_t9;
s32 ret;
- ret = FALSE;
+ ret = false;
temp_t9 = (get_angle_between_xy(arg1->pos[0], arg0[0], arg1->pos[2], arg0[2]) + (arg2 / 2)) - arg1->rot[1];
if ((temp_t9 >= 0) && (arg2 >= temp_t9)) {
- ret = TRUE;
+ ret = true;
}
return ret;
}
@@ -502,7 +502,7 @@ void mtfx_translation_x_y(Mat4 arg0, s32 x, s32 y) {
* 1 0 0 x
* 0 1 0 y
* 0 0 1 0
- * 0 0 0 1
+ * 0 0 0 1
*/
}
@@ -944,10 +944,10 @@ void vec3f_rotate_x_y(Vec3f dest, Vec3f pos, Vec3s rot) {
/**
* @brief set the matrix to a transformation matrix
- *
+ *
* @param translate or position
- * @param orientation
- * @param scale
+ * @param orientation
+ * @param scale
*/
void rsp_set_matrix_transformation(Vec3f translate, Vec3su orientation, f32 scale) {
Mat4 matrix;