Package com.pixelmonmod.pixelmon.tools
Class LineCalc
java.lang.Object
com.pixelmonmod.pixelmon.tools.LineCalc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatlerp(float ratio, float min, float max) static floatlerp(float min, float max, float limit, float value) static floatlerp(float scalar, float minScalar, float maxScalar, float minResult, float maxResult) static floatlinearScaleInteger(float initial_value, float final_value, int animationCounterLength, int animationCounterValue) static floatratio(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)
-