The starting point
The ending point
Callback to check if shape 1 is touched by X and Y coordinates
Callback to check if shape 2 is touched by X and Y coordinates
The line from shape 1 to shape 2
Iterates over all lines which are part of an edge Where the edge gets painted on
The edge which gets painted
A line stroke connecting all the points along the edge
Generated using TypeDoc
Performs Bresenham's Line Algorithm (Bresenham 1965)
The algorithm draws a line from p1 to p2, which have an associated shape. The algorithm tries estimates the line which draws the thought line from p1 to p2 while never touching their associated shapes.