bresenhams Line
Implements Bresenham's line generation algorithm to plot a line between two points on a hexagonal grid. Calls the provided process function for each point along the line. This function generates a symmetric line, meaning swapping the start and end points won't affect the result.
Parameters
The 'q' coordinate of the first point.
The 'r' coordinate of the first point.
The 'q' coordinate of the second point.
The 'r' coordinate of the second point.
A function that's called for each point on the line.
Uses Bresenham's line generation algorithm to create a path from this coordinate to another.
This function generates a symmetric line - meaning swapping the start and end points won't affect the result.
Return
A list containing coordinates of each point on the line.
Parameters
The destination coordinate.