Ray-casting algorithm: Difference between revisions

Line 2,761:
else if(Px<Ax.min(Bx)) True
else try{ ( (Py - Ay)/(Px - Ax) )>=( (By - Ay)/(Bx - Ax) ) } //blue>=red
catch(MathError){ TruePx==Ax } // divide by zero == ∞, only blue?
}
Anonymous user