main.cs756 chars41 lines
This function takes in two Point
objects representing the start and end points of the line. It then uses Bresenham's line algorithm to calculate all the points along the line between the two points, and returns them as a List<Point>
.
Note: This implementation assumes that the two points are in the same quadrant. If they are in different quadrants, additional logic will be required.
gistlibby LogSnag