Let’s say we have a 100×100 coordinate system, like the one below. 0,0 is its left-top corner, 50,50 is its center point, 100,100 is its bottom right corner, etc.
Now we need to draw a line from the center outwards. We know the angle of the line, but need to calculate the coordinates of its end point. What do you think would be the best way to do it?
For example, if the angle of the line is 45 degrees, its end point coordinates would be roughly 75,15.

You need to use the trigonometric functions
sinandcos.Something like this:
Keep in mind that most implementations assume that you’re working with radians and have positive y pointing upwards.