Function G2(StartX, StartY, EndX, EndY, Radius)

Blitz3D Forums/Blitz3D Programming/Function G2(StartX, StartY, EndX, EndY, Radius)

I'm trying to wrap my head around a function to draw and arc
I'm working on a simple drawing program for my CNC machine

The G-codes I'm trying to work out are G2 and G3
Function G2(StartX#, StartY#, EndX#, EndY#, Radius#)

It draws an arc from start to end based on the radius.
I'm thinking about using the mouse wheel to change radius
after I draw a line.

What I'm doing is trying to trace an image by drawing lines
and arcs to generate the GCode for the CNC machine.