Generate a sequence of snapped points between two given snapped coordinates using Bresenham's Line Algorithm.
Generate a sequence of snapped points between two given snapped coordinates using Bresenham's Line Algorithm. Will not return any duplicate points, and will always include the start and end points
x0
y0
x1
y1
Computes the column index of an X ordinate.
Computes the column index of an X ordinate.
the X ordinate
the column index
Computes the column index of an Y ordinate.
Computes the column index of an Y ordinate.
the Y ordinate
the column index
Computes the X ordinate of the i'th grid column.
Computes the X ordinate of the i'th grid column.
the index of a grid column
the X ordinate of the column
Computes the Y ordinate of the i'th grid row.
Computes the Y ordinate of the i'th grid row.
the index of a grid row
the Y ordinate of the row
Snaps points to cells of a defined grid