Click or drag to resize

TransitionType_EaseInEaseOutonTimer Method

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.

Namespace:  Transitions
Assembly:  Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.8.2.285
Syntax
C#
public void onTimer(
	int iTime,
	out double dPercentage,
	out bool bCompleted
)

Parameters

iTime
Type: SystemInt32

[Missing <param name="iTime"/> documentation for "M:Transitions.TransitionType_EaseInEaseOut.onTimer(System.Int32,System.Double@,System.Boolean@)"]

dPercentage
Type: SystemDouble

[Missing <param name="dPercentage"/> documentation for "M:Transitions.TransitionType_EaseInEaseOut.onTimer(System.Int32,System.Double@,System.Boolean@)"]

bCompleted
Type: SystemBoolean

[Missing <param name="bCompleted"/> documentation for "M:Transitions.TransitionType_EaseInEaseOut.onTimer(System.Int32,System.Double@,System.Boolean@)"]

Implements

ITransitionTypeonTimer(Int32, Double, Boolean)
See Also