I am converting my sketch from the Week 4 assignment into a function-based one.

image.png

I do ran into an issue of unmatching between horizontal and vertical circles:

image.png

image.png

I think it requires a complex formula to resolve.