com.arca.std.utils.modifiers.Vector2Modifier 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.Vector2;
public class Vector2Modifier extends Modifier {
/*========================
////FIELDS & CONSTANTS////
========================*/
/*========================
///////CONSTRUCTORS///////
========================*/
public Vector2Modifier(Vector2 pInitialValue, Vector2 pFinalValue, Consumer pValueSetter){
super(pInitialValue, pFinalValue, pValueSetter);
}
/*=======================
//////////METHODS////////
=======================*/
@Override
public void modify(float pProgress) {
mValueSetter.accept(mInitialValue.cpy().lerp(mFinalValue, pProgress));
}
/*========================
////GETTERS & SETTERS////
========================*/
/*========================
/////INNER CLASSES////////
========================*/
}