Ray-casting algorithm: Difference between revisions

Content added Content deleted
Line 497: Line 497:
rayIntersects =
rayIntersects =
intersects p line &&
intersects p line &&
(not (py == ay) || by < py) &&
(py /= ay || by < py) &&
(not (py == by) || ay < py)
(py /= by || ay < py)
((ax, ay), (bx, by)) = side
((ax, ay), (bx, by)) = side
line = carrier side</lang>
line = carrier side</lang>