MeatMotion

DoubleMotionAdapter

Linearly interpolate the Double endpoints at the eased Progress.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct DoubleMotionAdapter : IMotionAdapter<double, NoOptions>, IProgressOnlyAdapter
MotionAdapters.cs · L31

Members

Evaluate

Read endpoints and options by reference and return the sampled value for the evaluation context.

public double Evaluate(ref double startValue, ref double endValue, ref NoOptions options, in MotionEvaluationContext context)
Parameters and return value
startValue
ref double Starting value.
endValue
ref double End value.
options
ref NoOptions Options passed to this value adapter.
context
in MotionEvaluationContext Eased Progress and elapsed Time in seconds.
Returns
double