Function line_2d::coords_between

source ·
pub fn coords_between(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 ordinal steps. start and end may be the same.