summaryrefslogtreecommitdiff
path: root/include/s
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-06-29 16:56:11 +0200
committerrobojumper <robojumper@gmail.com>2024-06-29 16:56:11 +0200
commitb4484db5d9ad5f7f0134c5a2832353a7a64af279 (patch)
tree2c853a10b6b958fa1dd3fa075569542840fe1210 /include/s
parent4afb9d6e168db32b424890466fe5904befb9303e (diff)
sLib math some other guessed things
Diffstat (limited to 'include/s')
-rw-r--r--include/s/s_Math.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/s/s_Math.h b/include/s/s_Math.h
index 668f5056..bd49c2a3 100644
--- a/include/s/s_Math.h
+++ b/include/s/s_Math.h
@@ -5,14 +5,22 @@
namespace sLib {
+// Names from NSMBW
float addCalc(float *value, float target, float ratio, float maxStepSize, float minStepSize);
-
+short addCalcAngle(short *value, short target, short ratio, short maxStepSize, short minStepSize);
BOOL chase(short *value, short target, short stepSize);
BOOL chase(int *value, int target, int stepSize);
BOOL chase(float *value, float target, float stepSize);
-
BOOL chaseAngle(short *value, short target, short stepSize);
+
+// Inofficial names
+float extrapolate(float start, float end, float scale);
+BOOL isInRange(float val, float min, float max);
+void addCalcScaledDiff(float *value, float target, float ratio, float maxStepSize);
+void addCalcScaled(float *value, float stepSize, float maxStep);
+int absDiff(short a1, short a2);
+
} // namespace sLib
#endif