# RectMotionAdapter

Interpolate position and size separately and return the resulting Rect.

Namespace: MeatMotion.Adapters

Assembly: MeatMotion

```csharp
public readonly struct RectMotionAdapter : IMotionAdapter<Rect, NoOptions>, IFloatComponents
```

[Runtime/Adapters/BuiltIn/MotionAdapters.cs · L85](../../../source/Runtime/Adapters/BuiltIn/MotionAdapters.cs.html#L85)

## Evaluate

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

```csharp
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`

[Runtime/Adapters/BuiltIn/MotionAdapters.cs · L87](../../../source/Runtime/Adapters/BuiltIn/MotionAdapters.cs.html#L87)
