# Easing

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/Easing.java+class:androidx.constraintlayout.core.motion.utils.Easing) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
class Easing
```

<br />

Known direct subclasses [Schlick](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Schlick), [StepCurve](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/StepCurve)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Schlick` | Schlick's bias and gain functions curve for use in an easing function including quantize functions |
| `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 |

*** ** * ** ***

Provide the engine for cubic spline easing

## Summary

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

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/motion/utils/Easing#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/Easing#getDiff(double)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` |
| `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()()` |

| ### Public properties |
|---|---|
| `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 constructors

### Easing

Added in 1.1.2

```
Easing()
```

## Public functions

### get

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

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

### getDiff

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

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

### getInterpolator

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

```
java-static fun getInterpolator(configString: String!): Easing!
```

### toString

```
fun toString(): String!
```

## Public properties

### NAMED_EASING

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

```
java-static val NAMED_EASING: Array<String!>!
```