mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Stuff
This commit is contained in:
1 parent
9c4a30d224
commit
666398e480
174 files changed
+8694
-2942
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package com.moulberry.flashback;
|
||||
|
||||
import org.joml.Quaternionf;
|
||||
|
||||
public class Interpolation {
|
||||
|
||||
public static double linear(double from, double to, float amount) {
|
||||
return from + (to - from) * amount;
|
||||
}
|
||||
|
||||
public static float linear(float from, float to, float amount) {
|
||||
return from + (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