New: added small lib to help get best line segment that should be used if adding new anchor OUTSIDE a poly.