Grid extents alignment based on crop region

@c.poupin. Thank you so much.
your work is amazing.
I am looking into this many times to understand.
but i think i missed to specify diagonal grids as shown in image.
is that possible for diagonal grids also?