1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00

Initial Commit (1.0)

This commit is contained in:
Shy
2024-09-07 18:54:20 +02:00
commit 6ef0f3758d
42 changed files with 2893 additions and 0 deletions
@@ -0,0 +1,18 @@
package de.shiewk.widgets;
public class WidgetUtils {
public static double translateToWidgetSettingsValue(double value, int max){
return (value / max) * 100;
}
public static double translateToScreen(double value, int max){
return value / 100d * max;
}
public static double computeEasing(double x) {
return 1d - Math.pow(1d - x, 3.5d);
}
}