Ray-casting algorithm: Difference between revisions

m
inverted the logic when modified A below B and viceversa; fixed
m (→‎{{header|Tcl}}: trying to fix, noticed that the bug is not only about the ray passing on a vertex... hm)
m (inverted the logic when modified A below B and viceversa; fixed)
Line 44:
Py ← Py + ε
'''end''' '''if'''
'''if''' Py >< Ay '''or''' Py <> By '''then'''
'''return''' false
'''else''' '''if''' Px > max(Ax, Bx) '''then'''