cihologramas / pyoptools

Python tools for optical design
GNU General Public License v3.0
137 stars 46 forks source link

Fix intersection #116

Closed ederag closed 2 years ago

ederag commented 2 years ago

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