Click or drag to resize

TransitionType_EaseInEaseOut Class

Manages an ease-in-ease-out transition. This accelerates during the first half of the transition, and then decelerates during the second half.
Inheritance Hierarchy
SystemObject
  TransitionsTransitionType_EaseInEaseOut

Namespace:  Transitions
Assembly:  Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.7.0.280
Syntax
C#
public class TransitionType_EaseInEaseOut : ITransitionType

The TransitionType_EaseInEaseOut type exposes the following members.

Constructors
  NameDescription
Public methodTransitionType_EaseInEaseOut
Constructor. You pass in the time that the transition will take (in milliseconds).
Top
Methods
  NameDescription
Public methodonTimer
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.
Top
See Also