# ViewSpline.PathRotate

Artifact: [androidx.constraintlayout:constraintlayout](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/motion/utils/ViewSpline.java+class:androidx.constraintlayout.motion.utils.ViewSpline.PathRotate) Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

*** ** * ** ***

<br />

```
class ViewSpline.PathRotate : ViewSpline
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet) |||
|   | ↳ | [androidx.constraintlayout.motion.utils.ViewSpline](https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline) ||
|   |   | ↳ | [androidx.constraintlayout.motion.utils.ViewSpline.PathRotate](https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline.PathRotate) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline.PathRotate#PathRotate()()` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline.PathRotate#setPathRotate(android.view.View,float,double,double)(view: https://developer.android.com/reference/android/view/View.html!, t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` Use to set the rotation relative to the path |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline.PathRotate#setProperty(android.view.View,float)(view: https://developer.android.com/reference/android/view/View.html!, t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` the main interface to setting a view property |

### Inherited functions

From [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#get(float)(t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/CurveFit!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#getCurveFit()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#getSlope(float)(t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#makeCustomSpline(java.lang.String,androidx.constraintlayout.core.motion.utils.KeyFrameArray.CustomArray)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, attrList: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/KeyFrameArray.CustomArray!)` `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#makeCustomSplineSet(java.lang.String,androidx.constraintlayout.core.motion.utils.KeyFrameArray.CustomVar)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, attrList: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/KeyFrameArray.CustomVar!)` `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#makeSpline(java.lang.String,long)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, currentTime: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#setPoint(int,float)(position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#setProperty(androidx.constraintlayout.core.motion.utils.TypedValues,float)(widget: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/TypedValues!, t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#setType(java.lang.String)(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#setup(int)(curveType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#toString()()` From [androidx.constraintlayout.motion.utils.ViewSpline](https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline) `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline#makeCustomSpline(java.lang.String,android.util.SparseArray<androidx.constraintlayout.widget.ConstraintAttribute>)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, attrList: https://developer.android.com/reference/android/util/SparseArray.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute!>!)` `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/motion/utils/ViewSpline#makeSpline(java.lang.String)(str: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)`

### Inherited properties

From [androidx.constraintlayout.core.motion.utils.SplineSet](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet) `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/CurveFit!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#mCurveFit()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/SplineSet#mTimePoints()` `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/constraintlayout/core/motion/utils/SplineSet#mValues()`

## Public constructors

### PathRotate

Added in 2.2.2

```
PathRotate()
```

## Public functions

### setPathRotate

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

```
fun setPathRotate(view: View!, t: Float, dx: Double, dy: Double): Unit
```

Use to set the rotation relative to the path

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | the view to set |
| `t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the time point |
| `dx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | the path velocity in x |
| `dy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | the path velocity in y |

### setProperty

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

```
fun setProperty(view: View!, t: Float): Unit
```

the main interface to setting a view property

| Parameters |
|---|---|
| `view: https://developer.android.com/reference/android/view/View.html!` | the view |
| `t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the point of time |