Function tapestry::patterns::line[][src]

pub fn line<C1, C2>(from: C1, to: C2) -> impl Iterator<Item = Coord> where
    C1: Into<Coord>,
    C2: Into<Coord>, 

Traces Bresenham’s line algorithm between from and to.