I am trying to make a plugin for Qgis with python. I have the four corner coordinates for a rectangle. I want to give the user the inputs, line space and angle (0 -180 degrees).
With these inputs, I want to fill this rectangle with lines in the direction of the specified angle and with the specified line spacing between the lines.
I guess what I need is the same type of code as for making a grid. But I can only find information about grids which are vertical or horizontal. I will try to code it myself, but if anyone have a webpage with information, I would gladly to read it.