I have been searching for a while on how to calculate and angle in g-code.
e.g.
Stock - 50 diameter
I want to cut a a 45 degree angle

The mach3 wizards with cut a taper but the g-code overshoots the end. So if I put a x as 10 and z as 0 the the code will go to -9.5 (example), this is OK if it's an end angle but not if it's like the picture.
Questions:
I've seen a couple of wizards that ask for angle and then start z and end z. Isn't the z end redundant? e.g if i wanted a angle from x=0 z=0 @45 degrees to a stock diameter of 30mm then put in a z end of 500mm the angle using the z end would not be 45 degrees. I would have thought it would be either an angle or point to point and you get what angle comes out.
Anyway I would like the formulas for working this out myself - arc formulas would be nice as well.
thanks