Thanks for the answer in Stackoverflow. I checked it out.
Суббота, 4 мая 2013, 21:24 -04:00 от Warren Weckesser
:
>On 5/4/13, Bakhtiyor Zokhidov < bakhtiyor_zokhi...@mail.ru > wrote:
>>
>> Hi,
>> I have the following code which represents intersected point of each cell in
>> the given two poi
On 5/4/13, Bakhtiyor Zokhidov wrote:
>
> Hi,
> I have the following code which represents intersected point of each cell in
> the given two points, A(x0,y0) and B(x1,y1).
>
> def intersected_points(x0, x1, y0, y1):
> # slope
> m = (y1 - y0 )/( x1 - x0)
> # Boundary of the selected points
> x_ceil
Hi,
I have the following code which represents intersected point of each cell in
the given two points, A(x0,y0) and B(x1,y1).
def intersected_points(x0, x1, y0, y1):
# slope
m = (y1 - y0 )/( x1 - x0)
# Boundary of the selected points
x_ceil = ceil( min (x0, x1 ))
x_floor = floor( max(x0, x1))
y