Function line_drawing::sorted_walk_grid
[−]
[src]
pub fn sorted_walk_grid(
start: (isize, isize),
end: (isize, isize)
) -> Vec<(isize, isize)>
A sorted version of walk_grid
.
Sorts the points to ensure that if the start and end points were swapped the line would be the same.