Skip to content

Commit

Permalink
Added Easing.SINE_IN
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed May 3, 2024
1 parent 616e117 commit cbae484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/latvian/mods/kmath/util/Easing.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static Easing add(String id, Double2DoubleFunction function) {
public static final Easing ISMOOTHSTEP = add("ismoothstep", KMath::ismoothstep);
public static final Easing SMOOTHERSTEP = add("smootherstep", KMath::smootherstep);

public static final Easing SINE_IN = add("sine_in", x -> 1 - Math.cos((x - Math.PI) / 2));
public static final Easing SINE_IN = add("sine_in", x -> 1 - Math.cos((x * Math.PI) / 2));
public static final Easing SINE_OUT = add("sine_out", x -> Math.sin((x * Math.PI) / 2));
public static final Easing SINE_IN_OUT = add("sine_in_out", x -> -(Math.cos(Math.PI * x) - 1) / 2);

Expand Down

0 comments on commit cbae484

Please sign in to comment.