summaryrefslogtreecommitdiff
path: root/src/code/sys_math.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/sys_math.c')
-rw-r--r--src/code/sys_math.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/code/sys_math.c b/src/code/sys_math.c
index 0a85d5cf6..f19719bb9 100644
--- a/src/code/sys_math.c
+++ b/src/code/sys_math.c
@@ -38,10 +38,18 @@ f32 Math_PowF(f32 base, s32 exp) {
return ret;
}
+/**
+ * @param angle radians
+ * @return sin(angle)
+ */
f32 Math_SinF(f32 angle) {
return sins((s16)(angle * (0x7FFF / M_PI))) * SHT_MINV;
}
+/**
+ * @param angle radians
+ * @return cos(angle)
+ */
f32 Math_CosF(f32 angle) {
return coss((s16)(angle * (0x7FFF / M_PI))) * SHT_MINV;
}