Function line_2d::coords_between_cardinal
source · pub fn coords_between_cardinal(
start: Coord,
end: Coord
) -> impl Iterator<Item = Coord>
Expand description
Returns an iterator over all the coordinates between start and end (inclusive) along a straight
(rasterized) line which includes only cardinal steps. start
and end
may be the same.