M-File Help: bresenham | View code for bresenham |
Generate a line
p = bresenham(x1, y1, x2, y2) is a list of integer coordinates (2xN) for points lying on the line segment joining the integer coordinates (x1,y1) and (x2,y2).
p = bresenham(p1, p2) as above but p1=[x1; y1] and p2=[x2; y2].
© 1990-2014 Peter Corke.