Class DecelerationTimingParameters
public class DecelerationTimingParameters : ITimingParameters
- Inheritance
-
DecelerationTimingParameters
- Implements
- Inherited Members
- Extension Methods
Constructors
DecelerationTimingParameters(float, float, float, float)
public DecelerationTimingParameters(float initialValue, float initialVelocity, float decelerationRate, float threshold)
Parameters
DecelerationTimingParameters(float, float, float, float, float)
Creates timing parameters specifically for scrolling to a target position in a specified time
public DecelerationTimingParameters(float currentValue, float targetValue, float durationSecs, float decelerationRate, float threshold = 0.1)
Parameters
currentValuefloatThe current position/value
targetValuefloatThe target position/value to scroll to
durationSecsfloatThe desired duration in seconds
decelerationRatefloatThe deceleration rate (between 0 and 1)
thresholdfloatThe threshold for considering motion stopped
Properties
DecelerationK
public float DecelerationK { get; protected set; }
Property Value
DecelerationRate
public float DecelerationRate { get; protected set; }
Property Value
Destination
public float Destination { get; }
Property Value
DurationSecs
public float DurationSecs { get; }
Property Value
InitialValue
public float InitialValue { get; set; }
Property Value
InitialVelocity
public float InitialVelocity { get; set; }
Property Value
Threshold
public float Threshold { get; set; }
Property Value
Methods
DurationToValue(float)
public double DurationToValue(float value)
Parameters
valuefloat
Returns
ValueAt(float)
public float ValueAt(float offsetSecs)
Parameters
offsetSecsfloat
Returns
VelocityAt(double)
public float VelocityAt(double time)
Parameters
timedouble
Returns
VelocityTo(float, float, double)
public float VelocityTo(float startingPoint, float targetPoint, double time)
Parameters
Returns
VelocityToZero(float, float, float, float)
public float VelocityToZero(float startingPoint, float targetPoint, float maxTimeSecs = 0, float epsilon = 1E-06)