Improve test_intersection with better tests
and fix intersection when p1 and p2 differ.
By the way, those warnings are gone:
pyoptools/raytrace/calc/calc.py:72: RuntimeWarning: invalid value encountered in true_divide
a=p2p1xv2/d1xd2
pyoptools/raytrace/calc/calc.py:73: RuntimeWarning: invalid value encountered in true_divide
b=p2p1xv1/d1xd2
Improve
test_intersection
with better tests and fixintersection
when p1 and p2 differ.By the way, those warnings are gone: