# InterpolationNode.Interpolation

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/behavior/InterpolationNode.kt+class:androidx.ink.brush.behavior.InterpolationNode.Interpolation) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***


```
public final class InterpolationNode.Interpolation
```

<br />

*** ** * ** ***

Interpolation functions for use in an `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode`.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation#INVERSE_LERP()` Inverse linear interpolation. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation#LERP()` Linear interpolation. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/Version` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation#calculateMinimumRequiredVersion()()` Returns the minimum required `https://developer.android.com/reference/androidx/ink/brush/Version` for this `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation`. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation#toString()()` |

## Public fields

### INVERSE_LERP

```
public static final @NonNull InterpolationNode.Interpolation INVERSE_LERP
```

Inverse linear interpolation. Evaluates to 0 when the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#paramInput()` value is equal to the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#startInput()` value, and to 1 when the parameter is equal to the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#endInput()` value. Evaluates to null when the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#startInput()` and `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#endInput()` values are equal.

### LERP

```
public static final @NonNull InterpolationNode.Interpolation LERP
```

Linear interpolation. Evaluates to the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#startInput()` value when the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#paramInput()` value is 0, and to the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#endInput()` value when the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#paramInput()` value is 1.

## Public methods

### calculateMinimumRequiredVersion

Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
public final @NonNull Version calculateMinimumRequiredVersion()
```

Returns the minimum required `https://developer.android.com/reference/androidx/ink/brush/Version` for this `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation`.

By default, decoding a `https://developer.android.com/reference/androidx/ink/brush/BrushFamily` containing an `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation` with a minimum required version higher than `https://developer.android.com/reference/androidx/ink/brush/Version#MAX_SUPPORTED()` will fail.

### toString

```
public @NonNull String toString()
```