TransitionType_EaseInEaseOut Class |
Namespace: Transitions
public class TransitionType_EaseInEaseOut : ITransitionType
The TransitionType_EaseInEaseOut type exposes the following members.
Name | Description | |
---|---|---|
TransitionType_EaseInEaseOut |
Constructor. You pass in the time that the transition
will take (in milliseconds).
|
Name | Description | |
---|---|---|
onTimer |
Works out the percentage completed given the time passed in.
This uses the formula:
s = ut + 1/2at^2
We accelerate as at the rate needed (a=4) to get to 0.5 at t=0.5, and
then decelerate at the same rate to end up at 1.0 at t=1.0.
|