MeatMotion

RectMotionAdapter

Interpolate position and size separately and return the resulting Rect.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct RectMotionAdapter : IMotionAdapter<Rect, NoOptions>, IFloatComponents
MotionAdapters.cs · L85

Members

Evaluate

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

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