common tangent

Any math gurus here? I have a problem where I need to find the two Planes that cover the outside of two cirlces, like the blue lines in this picture:

I’ve tracked the terminology down to “Common Tangent”, but I suck at translating textbook maths to script, I’ve googled the problem enough but only get textbook answers. Can anyone help please?

Circle centers would be Vector2/Vector3, and circle radius is float.

Hm… not from the top of my head. Maybe you could post to the best article that describes this mathematically. That we me or somebody might be able to turn it into code.

In an attempt to find a good example of the maths, I came across an explanation of what’s going on in englsh:

http://jwilson.coe.uga.edu/EMAT6680Fa05/Parveen/ASSIGNMENT%206/Assignment%206.htm

I can do this with vectors, if I get the normal between the two circles, then rotate it with quaternion by 90 degrees and multiply by the circle radius, I get the offset from the center.

with the vertices from both circles I can get (v2 - v1).normalized, then rotate by 90… and that gives the plane’s normal!

even though I kinda stumbled on a solution, thanks for the help. ^ ^;