It is easy to draw a grid on a square if the square is not rotated. But for rotated squares it is difficult for me to grid it. I want to grid a square by given four points. for example the following four points:
A(-3,0), B (-2,5), C(-5,3), D(0,2).
Any suggest would be greatly appreciated.
[rotation=<angle>]
. Figure out the rotation of your rectangle, put that rotation into the grid rotation option, done. Example:\tikz[rotate=30] \draw[step=1mm] (0,0) grid (2,2);