Click or drag to resize

TransitionType_Deceleration Class

Manages a transition starting from a high speed and decelerating to zero by the end of the transition.
Inheritance Hierarchy
SystemObject
  TransitionsTransitionType_Deceleration

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

The TransitionType_Deceleration type exposes the following members.

Constructors
 NameDescription
Public methodTransitionType_Deceleration 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 The initial velocity is 2, and the acceleration to get to 1.0 at t=1.0 is -2, so the formula becomes: s = t(2-t)
Top
See Also