summaryrefslogtreecommitdiff
path: root/include/SSystem/SComponent/c_math.h
diff options
context:
space:
mode:
authorTrueffeloot <geiloking135@gmail.com>2023-08-03 23:13:13 +0200
committerTrueffeloot <geiloking135@gmail.com>2023-08-03 23:13:13 +0200
commitdcec25478857bcff764a5a7feec00d57a55da008 (patch)
tree4fb09323e27914503ba24918c3a36fab51c03be2 /include/SSystem/SComponent/c_math.h
parent0300993e11bfca04d8f60911b60330f8c1c83251 (diff)
work on d_a_boomerang
Diffstat (limited to 'include/SSystem/SComponent/c_math.h')
-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));
}