public class StopLogicEngine extends java.lang.Object implements StopEngine
| Constructor and Description |
|---|
StopLogicEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
config(float currentPos,
float destination,
float currentVelocity,
float maxTime,
float maxAcceleration,
float maxVelocity) |
java.lang.String |
debug(java.lang.String desc,
float time)
Debugging logic to log the state.
|
float |
getInterpolation(float v) |
float |
getVelocity() |
float |
getVelocity(float x) |
boolean |
isStopped() |
public java.lang.String debug(java.lang.String desc,
float time)
debug in interface StopEnginedesc - Description to pre appendtime - Time during animationpublic float getVelocity(float x)
getVelocity in interface StopEnginepublic void config(float currentPos,
float destination,
float currentVelocity,
float maxTime,
float maxAcceleration,
float maxVelocity)
public float getInterpolation(float v)
getInterpolation in interface StopEnginepublic float getVelocity()
getVelocity in interface StopEnginepublic boolean isStopped()
isStopped in interface StopEngine