All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arca.std.utils.modifiers.QuaternionModifier Maven / Gradle / Ivy

There is a newer version: 0.1.1
Show newest version
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////////
	========================*/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy