summaryrefslogtreecommitdiff
path: root/src/code/sys_math.c
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2023-04-18 13:34:58 -0700
committerGitHub <noreply@github.com>2023-04-18 16:34:58 -0400
commit823746d49530318331f29af92fa924a15f2482a1 (patch)
tree2931bf8e06b9e1d2ef13774e3fb2b25ac3b4d0fa /src/code/sys_math.c
parenta67d086addc1d0e226c28cadf58dda5e637d58ba (diff)
Angle Conversions (#1216)
* Angle Conversions * Format * namefixer * Renames in ObjHsStump_Appear * Format * once more * Explicit cast in EnSsh * Update src/overlays/actors/ovl_En_Fishing/z_en_fishing.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'src/code/sys_math.c')
-rw-r--r--src/code/sys_math.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/sys_math.c b/src/code/sys_math.c
index da4ccc9d2..7fd7e9dea 100644
--- a/src/code/sys_math.c
+++ b/src/code/sys_math.c
@@ -66,7 +66,7 @@ f32 pow_int(f32 base, s32 exp) {
* Takes an angle in radians and returns the sine.
*/
f32 sin_rad(f32 rad) {
- return sins(RADF_TO_BINANG(rad)) * SHT_MINV;
+ return sins(RAD_TO_BINANG(rad)) * SHT_MINV;
}
// Rename to Math_CosF
@@ -74,7 +74,7 @@ f32 sin_rad(f32 rad) {
* Takes an angle in radians and returns the cosine.
*/
f32 cos_rad(f32 rad) {
- return coss(RADF_TO_BINANG(rad)) * SHT_MINV;
+ return coss(RAD_TO_BINANG(rad)) * SHT_MINV;
}
/**