public final class VelocityTracker extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addMovement(MotionEvent event) |
void |
clear() |
void |
computeCurrentVelocity(int units) |
void |
computeCurrentVelocity(int units,
float maxVelocity) |
protected void |
finalize() |
float |
getXVelocity() |
float |
getXVelocity(int id) |
float |
getYVelocity() |
float |
getYVelocity(int id) |
static VelocityTracker |
obtain() |
void |
recycle() |
public static VelocityTracker obtain()
public void recycle()
protected void finalize()
throws Throwable
public void clear()
public void addMovement(MotionEvent event)
public void computeCurrentVelocity(int units)
public void computeCurrentVelocity(int units,
float maxVelocity)
public float getXVelocity()
public float getYVelocity()
public float getXVelocity(int id)
public float getYVelocity(int id)
Copyright © 2008-2013. All Rights Reserved.