Following this circle packing tutorial trying to get to this rendering tutorial.
This adjacency placement algorithm has some problems. You need to pass in the parent with the biggest radius first. I think I’m missing some key piece of math that would make sure the proper angle is always used.
We need to use some trigonometry to find the center of the circle we want to place adjacent to its two parents.
SSS rule for finding angle with three known sides
Isosceles relationships for finding perpendicular segment for placing child circle.
Built with blockbuilder.org