summaryrefslogtreecommitdiff
path: root/include/math_util.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-06-18 16:46:28 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-06-18 16:46:28 -0400
commit5e2d0ed91734dd995d82487acc8f1e7afa92f513 (patch)
treee85d0c05893eb0e01ae4ec37600bcdeae3193907 /include/math_util.h
parent47973aaf0be67cb890759bf6dbc6dac62c3535cd (diff)
parent7adff5d7193d5c77de4e8b348123f1e19ff7fb2c (diff)
Merge branch 'master' of github.com:martmists/pokediamond into pikalax_work
Diffstat (limited to 'include/math_util.h')
-rw-r--r--include/math_util.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/include/math_util.h b/include/math_util.h
index f7169956..f66f8a07 100644
--- a/include/math_util.h
+++ b/include/math_util.h
@@ -1,6 +1,38 @@
#ifndef POKEDIAMOND_MATH_UTIL_H
#define POKEDIAMOND_MATH_UTIL_H
+#include "fx.h"
-u16 rand_LC(void);
+/*
+ * Trigonometric functions
+ */
+s32 Sin(u16 degrees);
+s32 Cos(u16 degrees);
+s32 Sin_Wrap(u16 degrees);
+s32 Cos_Wrap(u16 degrees);
+u16 MathUtil_0201B9A0(u16 x);
+s32 Sin32(s32 degrees);
+
+/*
+ * Random number generators
+ */
+u32 GetLCRNGSeed();
+void SetLCRNGSeed(u32 seed);
+u16 LCRandom(void);
+
+u32 PRandom(u32 seed);
+
+void SetMTRNGSeed(u32 seed);
+u32 MTRandom(void);
+
+/*
+ * Nitro FX specific functions
+ */
+void MTX22_2DAffine(struct Mtx22 * mtx, u16 radians, fx32 x, fx32 y, u8 type);
+
+/*
+ * Vector functions
+ */
+s32 CircularDistance(s32 x1, s32 y1, s32 x2, s32 y2);
+s32 MathUtil_0201BC84(u16 arg0, s32 arg1);
#endif //POKEDIAMOND_MATH_UTIL_H