A Java implementation of an algorithm to snap round line segments to square and hexagonal grids.