[Input]: the begin and end points of an arbitrary line (small red points) and the line width (green line)[Example]: begin=(20,20), end=(100,50), width=5[Output]: The set of pixels (not the total area) that are in the yellow rectangle[Example]: {(20,20), (20,21), (20,22),...etc.}How can i calculate the output set?
Bounding rectangle of a line
algorithms;computational geometry