IStitchMathUtil

public interface IStitchMathUtil {

    float lerp(float last, float current, float delta);

    double lerp(double last, double current, double delta);

    Vector3d lerp(Entity entity, double delta);

    Color lerp(Color color, Color color2, double delta);

    double roundStep(double value, double step);

    double getHealthRatio(EntityLivingBase entity);

    double clamp(double value, double min, double max);

    float clamp(float value, float min, float max);

    int clamp(int value, int min, int max);

    Color rainbowColor(int time, float saturation, double speed);

    Color multiplyColor(Color color, double multiplier);

    Color getHealthColor(EntityLivingBase livingEntity);

    Color fadeColors(Color firstColor, Color secondColor, float time,
                     int index, long timePerIndex, double speed);

    float randomFloat(float min, float max);

    double randomDouble(double min, double max);

    int randomInt(int min, int max);

}

Last updated