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

*** ** * ** ***


```
public class StepCurve extends Easing
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.constraintlayout.core.motion.utils.Easing](https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing) ||
|   | ↳ | [androidx.constraintlayout.core.motion.utils.StepCurve](https://developer.android.com/reference/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 methods |
|---|---|
| `double` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StepCurve#get(double)(double x)` |
| `double` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StepCurve#getDiff(double)(double x)` |

| ### Inherited fields |
|---|
| From [androidx.constraintlayout.core.motion.utils.Easing](https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing) |---|---| | `static String[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing#NAMED_EASING()` | |

| ### Inherited methods |
|---|
| From [androidx.constraintlayout.core.motion.utils.Easing](https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing) |---|---| | `static https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing#getInterpolator(java.lang.String)(https://developer.android.com/reference/java/lang/String.html configString)` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing#toString()()` | |

## Public methods

### get

```
public double get(double x)
```

### getDiff

```
public double getDiff(double x)
```