StopLogicEngine.Decelerate

public class StopLogicEngine.Decelerate implements StopEngine


Summary

Public constructors

Public methods

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

Configure simple deceleration controller

String
debug(String desc, float time)
float
getInterpolation(float time)
float
float
getVelocity(float time)
boolean

Public constructors

Decelerate

Added in 1.1.0-alpha13
public Decelerate()

Public methods

config

Added in 1.1.0-alpha13
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.0-alpha13
public String debug(String desc, float time)

getInterpolation

Added in 1.1.0-alpha13
public float getInterpolation(float time)

getVelocity

Added in 1.1.0-alpha13
public float getVelocity()

getVelocity

Added in 1.1.0-alpha13
public float getVelocity(float time)

isStopped

Added in 1.1.0-alpha13
public boolean isStopped()