public class

StopLogicEngine.Decelerate

extends java.lang.Object

implements StopEngine

 java.lang.Object

↳androidx.constraintlayout.core.motion.utils.StopLogicEngine.Decelerate

Summary

Constructors
publicDecelerate()

Methods
public voidconfig(float currentPos, float destination, float currentVelocity)

Configure simple deceleration controller

public java.lang.Stringdebug(java.lang.String desc, float time)

public floatgetInterpolation(float time)

public floatgetVelocity()

public floatgetVelocity(float time)

public booleanisStopped()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Decelerate()

Methods

public java.lang.String debug(java.lang.String desc, float time)

public float getVelocity(float time)

public float getInterpolation(float time)

public float getVelocity()

public boolean isStopped()

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

Configure simple deceleration controller

Parameters:

currentPos: the current position
destination: the destination position
currentVelocity: the currentVelocity change in pos / second