the code is not pretty and there is a few edgecases unhandled. but if you want to play:
Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20232410/26/23/houdinifx_dXtRqlZvrI.gif
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20232410/26/23/arc_from_directed_points.hiplc