I don't know what it is, whether I have been out of school too long or I've let my brain get lazy (probably the latter) but I can't for the life of me figure out a way to do this.
I have four variables: XPos, YPos, Rotation (0-359 degrees) and Distance.
I need to programatically draw a line from 'XPos', 'YPos' (imagine on a XY plane) at 'Rotation' degrees, and the line needs to be Distance long. Basically I need to obtain the X,Y value of the point I will be drawing TO. Crappy paint drawing is win:
Even just some ideas would be awesome.