Class LineCalc

java.lang.Object
com.pixelmonmod.pixelmon.tools.LineCalc

public class LineCalc extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)