Calculating co-ordinates
I have an image moving from point a to point b - both points are known.
At the moment I'm updating the co-ordinates by doing the following:
double speed = 1;
double angle = Math.atan((double)yDistance / (double)xDistance);
if(entryX > destinationX && entryY > destinationY)
{
travelX = -(Math.cos(angle) * speed);
travelY = -(Math.sin(angle) * speed);
}
There are 4 if (else if) statements depending on where they start in relation to the destination)
travelX and travelY are added to the x and y co-ordinates of the image.
Anyways, this is fine but it doesn't look so nice - depending on the angle (more noticable on bigger angles) there is a noticable 'stepping' occuring, i.e. it looks as though it's moving across then down then across then down instead of a smooth diagonal.
It's purely asthetic but how can I make the movement look smoother and...nicer?

