public static float SmoothStep(float value1, float value2, float amount) { float num = FlaiMath.Clamp(amount, 0f, 1f); return(FlaiMath.Lerp(value1, value2, num * num * (3f - 2f * num))); }
public static double SmoothStep(double value1, double value2, double amount) { double num = FlaiMath.Clamp(amount, 0f, 1f); return(FlaiMath.Lerp(value1, value2, num * num * (3f - 2f * num))); }
public static Vector2d Lerp(Vector2d current, Vector2d target, double amount) { return(new Vector2d { X = FlaiMath.Lerp(current.X, target.X, amount), Y = FlaiMath.Lerp(current.Y, target.Y, amount) }); }