Anonymous user
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:
from pprint import pprint as pp
import sys
Line 808:
'''Sample output'''
<pre style="height:
TESTING WHETHER POINTS ARE WITHIN POLYGONS
Line 861:
'''Helper routine to convert Fortran Polygons and points to Python'''
<div style="height:
<lang python>def _convert_fortran_shapes():
point = Pt
|