Package com.pixelmonmod.pixelmon.tools
Class LineCalc
java.lang.Object
com.pixelmonmod.pixelmon.tools.LineCalc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
lerp
(float ratio, float min, float max) static float
lerp
(float min, float max, float limit, float value) static float
lerp
(float scalar, float minScalar, float maxScalar, float minResult, float maxResult) static float
linearScaleInteger
(float initial_value, float final_value, int animationCounterLength, int animationCounterValue) static float
ratio
(float value, float min, float max)
-
Constructor Details
-
LineCalc
public LineCalc()
-
-
Method Details
-
linearScaleInteger
public static float linearScaleInteger(float initial_value, float final_value, int animationCounterLength, int animationCounterValue) -
lerp
public static float lerp(float min, float max, float limit, float value) -
lerp
public static float lerp(float ratio, float min, float max) -
ratio
public static float ratio(float value, float min, float max) -
lerp
public static float lerp(float scalar, float minScalar, float maxScalar, float minResult, float maxResult)
-