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!)
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Méthode Description
ease ( EaseType easeType, float t, float duration ) : float
oppositeEaseType ( EaseType easeType ) : EaseType

returns the opposite EaseType of easeType

Method Details

ease() public static méthode

public static ease ( EaseType easeType, float t, float duration ) : float
easeType EaseType
t float
duration float
Résultat float

oppositeEaseType() public static méthode

returns the opposite EaseType of easeType
public static oppositeEaseType ( EaseType easeType ) : EaseType
easeType EaseType Ease type.
Résultat EaseType