(here, there)
| 335 | # Subroutines that don't need an object |
| 336 | |
| 337 | def steps(here, there): |
| 338 | nsteps = abs(here - there) |
| 339 | if nsteps <= 3: |
| 340 | nsteps = nsteps * 3 |
| 341 | elif nsteps <= 5: |
| 342 | nsteps = nsteps * 2 |
| 343 | elif nsteps > 10: |
| 344 | nsteps = 10 |
| 345 | return nsteps |
| 346 | |
| 347 | def interpolate(oldpts, newpts, n): |
| 348 | if len(oldpts) != len(newpts): |