aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-04 22:34:51 +0700
committerGitHub <noreply@github.com>2022-06-04 17:34:51 +0200
commit3e472ea407d128de61820fc167e08b8fe24186c9 (patch)
tree587d418150494680e9ca9eb6f43e809305ff1378 /src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java
parent88d9478c8ad01742e8395251c4d3e4f1c07812cc (diff)
downloadOneConfig-3e472ea407d128de61820fc167e08b8fe24186c9.tar.gz
OneConfig-3e472ea407d128de61820fc167e08b8fe24186c9.tar.bz2
OneConfig-3e472ea407d128de61820fc167e08b8fe24186c9.zip
move deltaTicks to GuiUtils (#33)
* move from mod events to mixin * packet events * move deltaTicks to GuiUtils * delete easeOut
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java b/src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java
index 630390b..4589925 100644
--- a/src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java
+++ b/src/main/java/cc/polyfrost/oneconfig/utils/MathUtils.java
@@ -1,7 +1,5 @@
package cc.polyfrost.oneconfig.utils;
-import cc.polyfrost.oneconfig.gui.OneConfigGui;
-
public final class MathUtils {
public static float clamp(float number) {
return clamp(number, 0, 1);
@@ -11,16 +9,6 @@ public final class MathUtils {
return number < min ? min : Math.min(number, max);
}
- @Deprecated
- public static float easeOut(float current, float goal, float speed) {
- float deltaTime = OneConfigGui.INSTANCE == null ? 16 : OneConfigGui.INSTANCE.getDeltaTime();
- if (Math.round(Math.abs(goal - current) * 100) > 0) {
- return current + (goal - current) / speed * deltaTime;
- } else {
- return goal;
- }
- }
-
public static float map(float value, float start1, float stop1, float start2, float stop2) {
return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1));
}