com.arca.std.utils.modifiers.QuaternionModifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arca-std Show documentation
Show all versions of arca-std Show documentation
A module filled with standard functionalities for the Arca framework
package com.arca.std.utils.modifiers;
import com.arca.core.scenenode.function.Consumer;
import com.badlogic.gdx.math.Quaternion;
public class QuaternionModifier extends Modifier {
/*========================
////FIELDS & CONSTANTS////
========================*/
/*========================
///////CONSTRUCTORS///////
========================*/
public QuaternionModifier(Quaternion pInitialValue, Quaternion pFinalValue, Consumer pValueSetter){
super(pInitialValue, pFinalValue, pValueSetter);
}
/*=======================
//////////METHODS////////
=======================*/
@Override
public void modify(float pProgress) {
mValueSetter.accept(mInitialValue.cpy().slerp(mFinalValue, pProgress));
}
/*========================
////GETTERS & SETTERS////
========================*/
/*========================
/////INNER CLASSES////////
========================*/
}