What i would think would be a simepl thing has me a little perplexed, and certainly not for the first time
I have been trying to find a way to get the endpoint of a line (2D space) using the lines length and its angle and start point.
So google tells me
end.X = Length * Cos(angle) + Start.X
end.Y = Length * Sin(angle) + Start.Y
However this doesn't seem to work for what I'am using.

I need to basically draw lines from each corner, on the left i want the lines to have an outward angle (180 to 360 deg), while the right the opposite.
In the above scenario i set it that all angles given are 45degrees and in order to mirror the left one i add 180.
So i convert my 45 degrees to radians, because Math.Cos uses only radians and then perform the calculation above.
I then draw the line with the given start and endpoints, however as you see the line is drawn at a 135 deg angle relative to the start point for the right side and 315 deg angle for the left. In both cases it is an extra 90 deg out.
I can't quite figure out why, other then reading somehwere that find the point is based on the hypotenuse of a triangle, no doubt one restricted to a 90 deg angle, other then that I'am clueless
Any one have any ideas?
Regards Wolfe
