MeatMotion

Vector4MotionAdapter

Linearly interpolate the Vector4 endpoints at the eased Progress.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct Vector4MotionAdapter : IMotionAdapter<Vector4, NoOptions>, IFloatComponents
MotionAdapters.cs · L67

Members

Evaluate

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

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