How to find external tangents between two closed planar curves (not circles)?

works pretty well for multiple curves