Ray-casting algorithm: Difference between revisions
Content added Content deleted
(immutable data types (C++)) |
m (→{{header|REXX}}: fixed a cut 'n paste mishap (trailing apostrophe).) |
||
Line 2,623: | Line 2,623: | ||
A=2.5; B=7.5 /*◄───for shorter args*/ |
A=2.5; B=7.5 /*◄───for shorter args*/ |
||
call poly 0 0, 10 0, 10 10, 0 10 ; call test 'square' |
call poly 0 0, 10 0, 10 10, 0 10 ; call test 'square' |
||
call poly 0 0, 10 0, 10 10, 0 10, A A, B A, B B, A B ; call test 'square hole |
call poly 0 0, 10 0, 10 10, 0 10, A A, B A, B B, A B ; call test 'square hole' |
||
call poly 0 0, A A, 0 10, A B, B B, 10 10, 10 0 ; call test 'irregular' |
call poly 0 0, A A, 0 10, A B, B B, 10 10, 10 0 ; call test 'irregular' |
||
call poly 3 0, 7 0, 10 5, 7 10, 3 10, 0 5 ; call test 'hexagon' |
call poly 3 0, 7 0, 10 5, 7 10, 3 10, 0 5 ; call test 'hexagon' |