MeatMotion

IntMotionAdapter

Interpolate and round the result to Int using IntegerOptions.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct IntMotionAdapter : IMotionAdapter<int, IntegerOptions>, IProgressOnlyAdapter
MotionAdapters.cs · L37

Members

Evaluate

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

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