Anonymous user
Ray-casting algorithm: Difference between revisions
m
→{{header|Javascript}}
Line 1,697:
function west(A, B, x, y) {
if (A.y <= B.y) {
if (y <= A.y || y > B.y ||
x >= A.x && x >= B.x) {
return false;
|