Jump to content

Ray-casting algorithm: Difference between revisions

→‎{{header|Python}}: scrolling: use em, not ex, since em is defined to be equal to the font line height and so will be more consistent
m (→‎{{header|Python}}: Expose all defs in scrolling window (for firefox on Windows at least).)
(→‎{{header|Python}}: scrolling: use em, not ex, since em is defined to be equal to the font line height and so will be more consistent)
Line 704:
 
=={{header|Python}}==
<div style="height:111ex50em;overflow:scroll"><lang python>from collections import namedtuple
from pprint import pprint as pp
import sys
Line 808:
 
'''Sample output'''
<pre style="height:30ex20em;overflow:scroll">
TESTING WHETHER POINTS ARE WITHIN POLYGONS
 
Line 861:
 
'''Helper routine to convert Fortran Polygons and points to Python'''
<div style="height:30ex20em;overflow:scroll">
<lang python>def _convert_fortran_shapes():
point = Pt
Cookies help us deliver our services. By using our services, you agree to our use of cookies.