mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
0.3.0
This commit is contained in:
1 parent
d2a217509f
commit
4d8f896cdf
90 files changed
+2345
-720
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package com.moulberry.flashback;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
import org.joml.Quaterniond;
|
||||
import org.joml.Quaternionf;
|
||||
|
||||
public class Interpolation {
|
||||
@@ -18,8 +19,8 @@ public class Interpolation {
|
||||
return from + Mth.wrapDegrees(to - from) * amount;
|
||||
}
|
||||
|
||||
public static Quaternionf linear(Quaternionf from, Quaternionf to, float amount) {
|
||||
return from.slerp(to, amount, new Quaternionf());
|
||||
public static Quaterniond linear(Quaterniond from, Quaterniond to, float amount) {
|
||||
return from.slerp(to, amount, new Quaterniond());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user