# StopLogicEngine.Decelerate

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

*** ** * ** ***


```
public class StopLogicEngine.Decelerate implements StopEngine
```

<br />

*** ** * ** ***

## Summary

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

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate#config(float,float,float)(float currentPos, float destination, float currentVelocity)` Configure simple deceleration controller |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate#debug(java.lang.String,float)(https://developer.android.com/reference/java/lang/String.html desc, float time)` |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate#getInterpolation(float)(float time)` |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate#getVelocity()()` |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate#getVelocity(float)(float time)` |
| `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/motion/utils/StopLogicEngine.Decelerate#isStopped()()` |

## Public constructors

### Decelerate

Added in 1.1.2

```
public Decelerate()
```

## Public methods

### config

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

```
public void config(float currentPos, float destination, float currentVelocity)
```

Configure simple deceleration controller

| Parameters |
|---|---|
| `float currentPos` | the current position |
| `float destination` | the destination position |
| `float currentVelocity` | the currentVelocity change in pos / second |

### debug

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

```
public String debug(String desc, float time)
```

### getInterpolation

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

```
public float getInterpolation(float time)
```

### getVelocity

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

```
public float getVelocity()
```

### getVelocity

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

```
public float getVelocity(float time)
```

### isStopped

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

```
public boolean isStopped()
```