Ray-casting algorithm: Difference between revisions

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