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.
파일 보기 프로젝트 열기: ArtemisEngine/Artemis-Engine

공개 메소드들

메소드 설명
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