See image below:

[illustration http://img28.imageshack.us/img28/5286/pic1we.png](http://img28.imageshack.us/img28/5286/pic1we.png)

Assume it's on android device screen. Dot #1 is the current position. I want to get the (x,y) position of Dot #2 following the linear blue line (let's say the range between dot #2 and dot #1 is 50dp). The black box is the source point of the blue line.

What is the term for this? Translation?

Is there anyone know the algorithm?

I developed android application using AndEngine, if you know there is built-in function for that, please let me know. Same too for android openGL ES library.

Note: I'm not looking for a way to move object using MoveModifier.

Thx in advance.