C# Class Nez.Tweens.EaseHelper

helper with a single method that takes in an EaseType and applies that ease equation with the given duration and time parameters. We do this to avoid passing around Funcs which create bogs of trash for the garbage collector (function pointers please!)
Exibir arquivo Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
ease ( EaseType easeType, float t, float duration ) : float
oppositeEaseType ( EaseType easeType ) : EaseType

returns the opposite EaseType of easeType

Method Details

ease() public static method

public static ease ( EaseType easeType, float t, float duration ) : float
easeType EaseType
t float
duration float
return float

oppositeEaseType() public static method

returns the opposite EaseType of easeType
public static oppositeEaseType ( EaseType easeType ) : EaseType
easeType EaseType Ease type.
return EaseType