getBresenham2DSegment return the Bresenham segment in 2D from extremities coordinates
getBresenham2DSegment(x1, y1, x2, y2)abscissa coordinates of the first point
ordinate coordinates of the first point
abscissa coordinates of the second point
ordinate coordinates of the second point
a data.table of points - data.table(x, y)