What I am trying to do is drawing a new line starting from a set point at any specified angle. For example the coordinate is (0,0) and I want to draw a line 8 pixels long at a 45 degree angle. The trouble i am having is getting the x2 and y2 coordinate because of the angle. I know there is a simple formula but I can't quite remember it. If anyone knows how to do what I am doing please reply. Thanks.