# FloatShakeMotionAdapter

Compute the Float sample for a shake tween from its starting value and strength.

Namespace: MeatMotion.Adapters

Assembly: MeatMotion

```csharp
public readonly struct FloatShakeMotionAdapter : IMotionAdapter<float, ShakeOptions>, IVibrationAdapter
```

[Runtime/Adapters/Vibration/VibrationMotion.cs · L198](../../../source/Runtime/Adapters/Vibration/VibrationMotion.cs.html#L198)

## Evaluate

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

```csharp
public float Evaluate(ref float startValue, ref float endValue, ref ShakeOptions options, in MotionEvaluationContext context)
```

Parameters and return value

- `startValue` (`ref float`) Starting value.
- `endValue` (`ref float`) End value.
- `options` (`ref ShakeOptions`) Options passed to this value adapter.
- `context` (`in MotionEvaluationContext`) Eased Progress and elapsed Time in seconds.
- Returns: `float`

[Runtime/Adapters/Vibration/VibrationMotion.cs · L200](../../../source/Runtime/Adapters/Vibration/VibrationMotion.cs.html#L200)
