MeatMotion

FloatMotionAdapter

Linearly interpolate the Float endpoints at the eased Progress.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct FloatMotionAdapter : IMotionAdapter<float, NoOptions>, IFloatComponents
MotionAdapters.cs · L25

Members

Evaluate

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

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