public class NoisyVelocityTracker extends Object implements VelocityTrackerInterface
Modifier and Type | Method and Description |
---|---|
void |
addMovement(MotionEvent event) |
void |
computeCurrentVelocity(int units) |
float |
getXVelocity() |
float |
getYVelocity() |
static NoisyVelocityTracker |
obtain() |
void |
recycle() |
public static NoisyVelocityTracker obtain()
public void addMovement(MotionEvent event)
addMovement
in interface VelocityTrackerInterface
public void computeCurrentVelocity(int units)
computeCurrentVelocity
in interface VelocityTrackerInterface
public float getXVelocity()
getXVelocity
in interface VelocityTrackerInterface
public float getYVelocity()
getYVelocity
in interface VelocityTrackerInterface
public void recycle()
recycle
in interface VelocityTrackerInterface