mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Public Release
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user