public final class MoveDistancesObject
extends java.lang.Object
| 构造器和说明 |
|---|
MoveDistancesObject(float initialX,
float initialY) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addNewPosition(float x,
float y)
Add a new position of this pointer and recalculate distances.
|
float |
getCurrentX()
Get current X coordinate of this pointer.
|
float |
getCurrentY()
Get current Y coordinate of this pointer.
|
float |
getDistanceXSinceLast()
Get X distance covered by this pointer since previous position.
|
float |
getDistanceXSinceStart()
Get X distance covered by this pointer since start position.
|
float |
getDistanceYSinceLast()
Get Y distance covered by this pointer since previous position.
|
float |
getDistanceYSinceStart()
Get Y distance covered by this pointer since start position.
|
float |
getInitialX()
Get X coordinate of this pointer when it was first register.
|
float |
getInitialY()
Get Y coordinate of this pointer when it was first register.
|
float |
getPreviousX()
Get previous X coordinate of this pointer.
|
float |
getPreviousY()
Get previous Y coordinate of this pointer.
|
public void addNewPosition(float x,
float y)
x - new X coordinatey - new Y coordinatepublic float getInitialX()
public float getInitialY()
public float getPreviousX()
public float getPreviousY()
public float getCurrentX()
public float getCurrentY()
public float getDistanceXSinceLast()
public float getDistanceYSinceLast()
public float getDistanceXSinceStart()
public float getDistanceYSinceStart()