# InterpolationNode

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) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***


```
public final class InterpolationNode extends ValueNode
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/androidx/ink/brush/behavior/Node) |||
|   | ↳ | [androidx.ink.brush.behavior.ValueNode](https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode) ||
|   |   | ↳ | [androidx.ink.brush.behavior.InterpolationNode](https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode) |

*** ** * ** ***

A `https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode` that interpolates between two inputs based on a parameter input. The specific kind of interpolation performed depends on the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation` parameter.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation` Interpolation functions for use in an `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#InterpolationNode(androidx.ink.brush.behavior.InterpolationNode.Interpolation,androidx.ink.brush.behavior.ValueNode,androidx.ink.brush.behavior.ValueNode,androidx.ink.brush.behavior.ValueNode)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation interpolation, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode paramInput, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode startInput, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode endInput )` Creates an `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode` that interpolates between two inputs based on a parameter input. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#getEndInput()()` The input node that produces the ending value for the interpolation. |
| `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#getInterpolation()()` The kind of interpolation to perform. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#getParamInput()()` The input node that produces the parameter value used to interpolate between the start and end inputs. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#getStartInput()()` The input node that produces the starting value for the interpolation. |
| `int` | `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode#hashCode()()` |
| `@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#toString()()` |

### Inherited methods

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/androidx/ink/brush/behavior/Node) `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/Node#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/Node`.
`final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode>` `https://developer.android.com/reference/androidx/ink/brush/behavior/Node#getInputs()()`

The ordered list of inputs that this node directly depends on.

## Public constructors

### InterpolationNode

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

```
public InterpolationNode(
    @NonNull InterpolationNode.Interpolation interpolation,
    @NonNull ValueNode paramInput,
    @NonNull ValueNode startInput,
    @NonNull ValueNode endInput
)
```

Creates an `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode` that interpolates between two inputs based on a parameter input. The specific kind of interpolation performed depends on the `https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation` parameter.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/InterpolationNode.Interpolation interpolation` | the kind of interpolation to perform |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode paramInput` | input node that produces the parameter value used to interpolate between the start and end inputs |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode startInput` | input node that produces the starting value for the interpolation |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode endInput` | input node that produces the ending value for the interpolation |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getEndInput

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

```
public final @NonNull ValueNode getEndInput()
```

The input node that produces the ending value for the interpolation.

### getInterpolation

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

```
public final @NonNull InterpolationNode.Interpolation getInterpolation()
```

The kind of interpolation to perform.

### getParamInput

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

```
public final @NonNull ValueNode getParamInput()
```

The input node that produces the parameter value used to interpolate between the start and end inputs.

### getStartInput

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

```
public final @NonNull ValueNode getStartInput()
```

The input node that produces the starting value for the interpolation.

### hashCode

```
public int hashCode()
```

### toString

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