# PathParser.PathDataNode

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/PathParser.java+class:androidx.core.graphics.PathParser.PathDataNode) Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

*** ** * ** ***

<br />

```
class PathParser.PathDataNode
```

<br />

*** ** * ** ***

Each PathDataNode represents one command in the "d" attribute of the svg file. An array of PathDataNode can represent the whole "d" attribute.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>` | `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode#getParams()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode#getType()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode#interpolatePathDataNode(androidx.core.graphics.PathParser.PathDataNode,androidx.core.graphics.PathParser.PathDataNode,float)( nodeFrom: https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode, nodeTo: https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` The current PathDataNode will be interpolated between the `nodeFrom` and `nodeTo` according to the `fraction`. |

## Public functions

### getParams

Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
fun getParams(): Array<Float>
```

### getType

Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
fun getType(): Char
```

### interpolatePathDataNode

Added in [1.13.0](https://developer.android.com/jetpack/androidx/releases/core#1.13.0)

```
fun interpolatePathDataNode(
    nodeFrom: PathParser.PathDataNode,
    nodeTo: PathParser.PathDataNode,
    fraction: Float
): Unit
```

The current PathDataNode will be interpolated between the `nodeFrom` and `nodeTo` according to the `fraction`.

| Parameters |
|---|---|
| `nodeFrom: https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode` | The start value as a PathDataNode. |
| `nodeTo: https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode` | The end value as a PathDataNode |
| `fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The fraction to interpolate. |