Crate line_drawing [] [src]

A collection of line-drawing algorithms for use in graphics and video games.

Currently implemented:

Functions

bresenham

A simple wrapper around bresenham-rs that includes the end point.

midpoint

An implementation of the mid-point line drawing algorithm.

sorted_bresenham

A sorted version of bresenham.

sorted_midpoint

A sorted version of midpoint.

sorted_walk_grid

A sorted version of walk_grid.

supercover

Like walk_grid but takes diagonal steps if the line passes directly over a corner.

walk_grid

Walk along a grid, taking only orthagonal steps.