Line algorithim for python and numeric

Theerasak Photha hanumizzle at gmail.com
Fri Oct 13 21:05:47 CEST 2006


On 10/13/06, Fredrik Lundh <fredrik at pythonware.com> wrote:
> Theerasak Photha wrote:
>
> > I'm not in kolluge yet and I just learned about linear interpolation
> > today---although I don't think it would necessarily apply to this
> > problem, where the increments set by the grid might be more discrete
> > than the line itself
>
> that's usually solved by stepping along the grid in one direction, and
> interpolating in the other.

Could rounding still be an issue? I sketched a line w/ m = 1/3 and
could see different possible outcomes for certain points on the line
in between each 3rd point on the x axis.

-- Theerasak



More information about the Python-list mailing list