Class StopLogicEngine.Decelerate
- java.lang.Object
-
- androidx.constraintlayout.core.motion.utils.StopLogicEngine.Decelerate
-
- All Implemented Interfaces:
StopEngine
- Enclosing class:
- StopLogicEngine
public static class StopLogicEngine.Decelerate extends java.lang.Object implements StopEngine
-
-
Constructor Summary
Constructors Constructor Description Decelerate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig(float currentPos, float destination, float currentVelocity)Configure simple deceleration controllerjava.lang.Stringdebug(java.lang.String desc, float time)floatgetInterpolation(float time)floatgetVelocity()floatgetVelocity(float time)booleanisStopped()
-
-
-
Method Detail
-
debug
public java.lang.String debug(java.lang.String desc, float time)- Specified by:
debugin interfaceStopEngine
-
getVelocity
public float getVelocity(float time)
- Specified by:
getVelocityin interfaceStopEngine
-
getInterpolation
public float getInterpolation(float time)
- Specified by:
getInterpolationin interfaceStopEngine
-
getVelocity
public float getVelocity()
- Specified by:
getVelocityin interfaceStopEngine
-
isStopped
public boolean isStopped()
- Specified by:
isStoppedin interfaceStopEngine
-
config
public void config(float currentPos, float destination, float currentVelocity)Configure simple deceleration controller- Parameters:
currentPos- the current positiondestination- the destination positioncurrentVelocity- the currentVelocity change in pos / second
-
-