Mathematicians once turned up their noses at imaginary numbers. But complex analysis actually simplifies math and physics.
This algorithm has quadratic run time so it can be slow with very large profiles. The "tangent" method generally produces good results when connecting a discrete polygon to a convex, finely sampled ...