# StepCurve

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

*** ** * ** ***


```
class StepCurve : Easing
```

<br />

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

*** ** * ** ***

This class translates a series of floating point values into a continuous curve for use in an easing function including quantize functions it is used with the "spline(0,0.3,0.3,0.5,...0.9,1)" it should start at 0 and end at one 1

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StepCurve#get(double)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StepCurve#getDiff(double)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` |

| ### Inherited functions |
|---|
| From [androidx.constraintlayout.core.motion.utils.Easing](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Easing) |---|---| | `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Easing!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Easing#getInterpolator(java.lang.String)(configString: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Easing#toString()()` | |

| ### Inherited properties |
|---|
| From [androidx.constraintlayout.core.motion.utils.Easing](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Easing) |---|---| | `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Easing#NAMED_EASING()` | |

## Public functions

### get

```
fun get(x: Double): Double
```

### getDiff

```
fun getDiff(x: Double): Double
```