Ray-casting algorithm: Difference between revisions

Content added Content deleted
m (→‎{{header|Tcl}}: formatting)
(→‎{{header|Tcl}}: marked since it suffers the same bug the now fixed pseudocode and C code suffered)
Line 200: Line 200:


=={{header|Tcl}}==
=={{header|Tcl}}==
{{incorrect|Tcl|If you try with {-5 5} {3 0 7 0 10 5 7 10 3 10 0 5 } (exagon), you notice a bug (now fixed in the given pseudocode by moving slightly the point): it says the point is inside.}}
<lang Tcl>package require Tcl 8.5
<lang Tcl>package require Tcl 8.5