[Math] Calculate intermediary control points in Cubic Bezier Curves

bezier-curve

I need to programatically generate two-dimensional circles of various dimensions, knowing only their radius and position. The circles will be drawn by employing 4 cubic Bezier curves.
How should I calculate the Cartesian coordinates of the two intermediary control points of each arc?

Best Answer

Wikipedia has it all worked out.

The control points between $(1,0)$ and $(0,1)$ are at $(1,k)$ and $(k,1)$ with $k=\frac43(\sqrt2-1)$.