summaryrefslogtreecommitdiff
path: root/include/SSystem
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2023-08-04 08:42:06 +0300
committerGitHub <noreply@github.com>2023-08-04 08:42:06 +0300
commit044f4753beb25a871f64fcbc0b268efa2421c9e1 (patch)
treefb51ae15e7532a3b43451e1f562677bebe30d957 /include/SSystem
parent0300993e11bfca04d8f60911b60330f8c1c83251 (diff)
parentb2d9d70b622af1ba5e0ad3c1f8ba73df96dc4015 (diff)
Merge pull request #398 from Trueffeloot/d_a_boomerang-work
work on d_a_boomerang
Diffstat (limited to 'include/SSystem')
-rw-r--r--include/SSystem/SComponent/c_math.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/SSystem/SComponent/c_math.h b/include/SSystem/SComponent/c_math.h
index 767f1ddfc0..7348052c9d 100644
--- a/include/SSystem/SComponent/c_math.h
+++ b/include/SSystem/SComponent/c_math.h
@@ -33,6 +33,10 @@ inline s16 i_cM_deg2s(f32 deg) {
return deg;
}
+inline f32 cM_fcos(f32 x) {
+ return JMASCos(cM_rad2s(x));
+}
+
inline f32 cM_fsin(f32 x) {
return JMASSin(cM_rad2s(x));
}