x1 and y1 are the x and y coordinates of the particles start point
x2 and y2 are where the particle is at the current moment
it doesnt matter what direction it travels, the function still works
(because of the abs command)
x2 and y2 are where the particle is at the current moment
it doesnt matter what direction it travels, the function still works
(because of the abs command)