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

*** ** * ** ***


```
public class Easing
```

<br />

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

|---|---|
| `https://developer.android.com/reference/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/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 fields |
|---|---|
| `static String[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing#NAMED_EASING()` |

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

| ### Public methods |
|---|---|
| `double` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing#get(double)(double x)` |
| `double` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/Easing#getDiff(double)(double x)` |
| `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 fields

### NAMED_EASING

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

```
public static String[] NAMED_EASING
```

## Public constructors

### Easing

Added in 1.1.2

```
public Easing()
```

## Public methods

### get

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

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

### getDiff

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

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

### getInterpolator

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

```
public static Easing getInterpolator(String configString)
```

### toString

```
public String toString()
```