MeatMotion

LongMotionAdapter

Interpolate and round the result to Long using IntegerOptions.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct LongMotionAdapter : IMotionAdapter<long, IntegerOptions>, IProgressOnlyAdapter
MotionAdapters.cs · L46

Members

Evaluate

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

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