Public Release

This commit is contained in:
Moulberry committed 2024-08-24 04:41:01 +08:00
1 parent 666398e480
commit 61bb497a22
126 files changed
+8435 -1240

No files matched your search

@@ -1,5 +1,6 @@
package com.moulberry.flashback;
import net.minecraft.util.Mth;
import org.joml.Quaternionf;
public class Interpolation {
@@ -12,6 +13,11 @@ public class Interpolation {
return from + (to - from) * amount;
}
public static float linearAngle(float from, float to, float amount) {
return from + Mth.wrapDegrees(to - from) * amount;
}
public static Quaternionf linear(Quaternionf from, Quaternionf to, float amount) {
return from.slerp(to, amount, new Quaternionf());
}