Get next X,Y of direction (angle)?

BlitzPlus Forums/BlitzPlus Programming/Get next X,Y of direction (angle)?

x = x + cos( angle ) * speed
y = y + sin( angle ) * speed

angle = atan2( y2 - y1, x2 - x1 )