2 writes to InitialVelocity
System.Windows.Input.Manipulations (2)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (2)
679
state.
InitialVelocity
= 0; // set to explicit 0 to clear out the fractional part
1248
this.
InitialVelocity
= initialState.Velocity * InertiaProcessor2D.millisecondsPerTimestampTick; // convert to timestamp units
16 references to InitialVelocity
System.Windows.Input.Manipulations (16)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (16)
677
if (DoubleUtil.IsZero(state.
InitialVelocity
))
687
Debug.Assert(!DoubleUtil.IsZero(state.
InitialVelocity
));
697
state.Duration = 2 * Math.Abs(state.Offset / state.
InitialVelocity
);
706
state.AbsoluteDeceleration = Math.Abs(state.
InitialVelocity
) / state.Duration;
718
(state.
InitialVelocity
> 0 ? double.PositiveInfinity : double.NegativeInfinity);
723
state.Duration = Math.Abs(state.
InitialVelocity
) / state.AbsoluteDeceleration;
724
state.Offset = state.
InitialVelocity
* state.Duration * 0.5;
948
resultValue = GetExtrapolatedValue(state.InitialValue, state.
InitialVelocity
, state.Deceleration, timeDelta);
1225
return
InitialVelocity
< 0 ? -AbsoluteDeceleration : AbsoluteDeceleration;
1253
this.ExtrapolationResult = double.IsNaN(this.
InitialVelocity
) ? ExtrapolationResult.Skip : ExtrapolationResult.Continue;
1271
double result =
InitialVelocity
- Deceleration * elapsedTimeSinceInitialTimestamp;
1286
",\nInitialVelocity=" + this.
InitialVelocity
+
1298
if (double.IsNaN(this.
InitialVelocity
))
1306
Debug.Assert(!double.IsNaN(this.
InitialVelocity
) && !double.IsInfinity(this.
InitialVelocity
));
1308
Debug.Assert(!double.IsNaN(this.AbsoluteDeceleration) && this.AbsoluteDeceleration >= 0 && !double.IsInfinity(this.
InitialVelocity
));