<h2 id="calculatetargetvalue-typeconverter-initialvalue-initialvelocity">calculateTargetValue</h2>

<div class='sourceset sourceset-common'>Common</div>

```kotlin
public fun <T, V : AnimationVector> DecayAnimationSpec<T>.calculateTargetValue(
    typeConverter: TwoWayConverter<T, V>,
    initialValue: T,
    initialVelocity: T,
): T
```

Calculates the target value of a decay animation based on the `initialValue` and
`initialVelocity`, and the `typeConverter` that converts the given type [T] to [AnimationVector](/jetpack-compose/androidx.compose.animation/animation-core/functions/AnimationVector).

#### Returns

| | |
| --- | --- |
|  | target value where the animation will come to a natural stop |

<hr class="docs-overload-divider">

<h2 id="calculatetargetvalue-initialvalue-initialvelocity">calculateTargetValue</h2>

<div class='sourceset sourceset-common'>Common</div>

```kotlin
public fun DecayAnimationSpec<Float>.calculateTargetValue(
    initialValue: Float,
    initialVelocity: Float,
): Float
```

Calculates the target value of a Float decay animation based on the `initialValue` and
`initialVelocity`.

#### Returns

| | |
| --- | --- |
|  | target value where the animation will come to a natural stop |