Artemis.Engine.Effectors.PresetFunctions.ScaleFrames C# (CSharp) Method

ScaleFrames() public static method

Return an effector function scaled by it's frames argument. If the given function is (t, f) => F(t, f), then the resulting function returned will be (t, f) => A*F(t, B*f + C) + D.
public static ScaleFrames ( Func func, double A, int B, int C, double D ) : Func
func Func
A double
B int
C int
D double
return Func
        public static Func<double, int, double> ScaleFrames(
            Func<double, int, double> func, double A, int B, int C, double D)
        {
            return (t, f) => A*func(t, B*f + C) + D;
        }