# 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)

*** ** * ** ***

Common/All
- Cmn

  ```
  class InterpolationNode.Interpolation
  ```

*** ** * ** ***

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

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation#INVERSE_LERP()` Inverse linear interpolation. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation#LERP()` Linear interpolation. | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation#calculateMinimumRequiredVersion()()` Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation`. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/InterpolationNode.Interpolation#toString()()` | Cmn |

## Public companion properties

### INVERSE_LERP

Cmn

```
val INVERSE_LERP: InterpolationNode.Interpolation
```

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

### LERP

Cmn

```
val LERP: InterpolationNode.Interpolation
```

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

## Public functions

### calculateMinimumRequiredVersion

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

```
fun calculateMinimumRequiredVersion(): Version
```

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

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

### toString

Cmn

```
open fun toString(): String
```