summaryrefslogtreecommitdiff
path: root/src/code/sys_math3d.c
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2024-08-27 14:32:33 +0200
committerGitHub <noreply@github.com>2024-08-27 14:32:33 +0200
commitfd14ddcbf1577bcaeac1e51b5e452819c243df73 (patch)
treee2d7ef7ca631cbe37aa2b2585c474301ca4a0161 /src/code/sys_math3d.c
parentd2aca2239fb2a814ffe9bfad8f2a100445e11ce8 (diff)
T() macro 5 (#2089)
* T() in __osMalloc.c * T() in code_80097A00.c * T() in debug_malloc.c * T() in code/load.c * T() in sys_math3d.c * T() in z_collision_btltbls.c, z_fbdemo_fade.c, z_fcurve_data_skelanime.c, z_view.c * T() in z_collision_check.c * remaining T() in __osMalloc.c * __osMalloc consistency * format
Diffstat (limited to 'src/code/sys_math3d.c')
-rw-r--r--src/code/sys_math3d.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/code/sys_math3d.c b/src/code/sys_math3d.c
index 6ac7482da..9d2759601 100644
--- a/src/code/sys_math3d.c
+++ b/src/code/sys_math3d.c
@@ -127,9 +127,9 @@ void Math3D_LineClosestToPoint(InfiniteLine* line, Vec3f* pos, Vec3f* closestPoi
dirVectorLengthSq = Math3D_Vec3fMagnitudeSq(&line->dir);
if (IS_ZERO(dirVectorLengthSq)) {
PRINTF(VT_COL(YELLOW, BLACK));
- // "Math3D_lineVsPosSuisenCross(): No straight line length"
- PRINTF("Math3D_lineVsPosSuisenCross():直線の長さがありません\n");
- PRINTF("cross = pos を返します。\n"); // "Returns cross = pos."
+ PRINTF(T("Math3D_lineVsPosSuisenCross():直線の長さがありません\n",
+ "Math3D_lineVsPosSuisenCross(): No straight line length\n"));
+ PRINTF(T("cross = pos を返します。\n", "Returns cross = pos.\n"));
PRINTF(VT_RST);
Math_Vec3f_Copy(closestPoint, pos);
//! @bug Missing early return
@@ -930,8 +930,9 @@ f32 Math3D_Plane(Plane* plane, Vec3f* pointOnPlane) {
f32 Math3D_UDistPlaneToPos(f32 nx, f32 ny, f32 nz, f32 originDist, Vec3f* p) {
if (OOT_DEBUG && IS_ZERO(sqrtf(SQ(nx) + SQ(ny) + SQ(nz)))) {
PRINTF(VT_COL(YELLOW, BLACK));
- // "Math3DLengthPlaneAndPos(): Normal size is near zero %f %f %f"
- PRINTF("Math3DLengthPlaneAndPos():法線size がゼロ近いです%f %f %f\n", nx, ny, nz);
+ PRINTF(T("Math3DLengthPlaneAndPos():法線size がゼロ近いです%f %f %f\n",
+ "Math3DLengthPlaneAndPos(): Normal size is near zero %f %f %f\n"),
+ nx, ny, nz);
PRINTF(VT_RST);
return 0.0f;
}
@@ -948,8 +949,9 @@ f32 Math3D_DistPlaneToPos(f32 nx, f32 ny, f32 nz, f32 originDist, Vec3f* p) {
normMagnitude = sqrtf(SQ(nx) + SQ(ny) + SQ(nz));
if (IS_ZERO(normMagnitude)) {
PRINTF(VT_COL(YELLOW, BLACK));
- // "Math3DSignedLengthPlaneAndPos(): Normal size is close to zero %f %f %f"
- PRINTF("Math3DSignedLengthPlaneAndPos():法線size がゼロ近いです%f %f %f\n", nx, ny, nz);
+ PRINTF(T("Math3DSignedLengthPlaneAndPos():法線size がゼロ近いです%f %f %f\n",
+ "Math3DSignedLengthPlaneAndPos(): Normal size is close to zero %f %f %f\n"),
+ nx, ny, nz);
PRINTF(VT_RST);
return 0.0f;
}