2D line segment intersection calcul8r script