C# Класс Artemis.Engine.Effectors.PresetFunctions

A static class of preset functions that can be used as the Func argument in an effector. Definition: An "effector function" is a Func (T is arbitrary) that can be supplied to an effector.
Показать файл Открыть проект

Открытые методы

Метод Описание
ScaleFrames ( Func func, double A, int B, int C, double D ) : Func

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.

ScaleTime ( Func func, double A, double B, double C, double D ) : Func

Return an effector function scaled by it's time argument. If the given function is (t, f) => F(t, f), then the resulting function returned will be (t, f) => A*F(B*t + C, f) + D.

ScaledSin ( double A, double B, double C, double D ) : Func

Return a sin effector function scaled by it's time argument.

ScaledSin ( double A, int B, int C, double D ) : Func

Return a sin effector function scaled by it's frame argument.

Описание методов

ScaleFrames() публичный статический Метод

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
Результат Func

ScaleTime() публичный статический Метод

Return an effector function scaled by it's time argument. If the given function is (t, f) => F(t, f), then the resulting function returned will be (t, f) => A*F(B*t + C, f) + D.
public static ScaleTime ( Func func, double A, double B, double C, double D ) : Func
func Func
A double
B double
C double
D double
Результат Func

ScaledSin() публичный статический Метод

Return a sin effector function scaled by it's time argument.
public static ScaledSin ( double A, double B, double C, double D ) : Func
A double
B double
C double
D double
Результат Func

ScaledSin() публичный статический Метод

Return a sin effector function scaled by it's frame argument.
public static ScaledSin ( double A, int B, int C, double D ) : Func
A double
B int
C int
D double
Результат Func