There are also commands that do this for you,
Return Float=NEWXVALUE(Current X Value, Angle Value, Step Value)
Return Float=NEWYVALUE(Current Y Value, Angle Value, Step Value)
Return Float=NEWZVALUE(Current Z Value, Angle Value, Step Value)
These commands are used to move from one point in space to another point in space based on a specified angle. Rather than using COS/SIN maths, these commands simplify the task of moving coordinates within 3D space. The step value specifies how far in the specified direction you would like to calculate. The parameters should be specified using real numbers.
Although they work in 3D space, if you use just the x and z versions, they work fine in 2D space as well.