line_drawing 1.0.1

A collection of line-drawing algorithms for use in graphics and video games.
Documentation
1
2
3
4
5
6
7
8
extern crate line_drawing;
use line_drawing::Bresenham3d;

fn main() {
    for (x, y, z) in Bresenham3d::new((0, 0, 0), (5, 6, 7)) {
        print!("({}, {}, {}), ", x, y, z);
    }
}