Move series of objects with increasing distance

I am modelling a brick wall and need the brick dimensions and spacing to be exact in order to account for variable grout dimensions. I have been able to construct most of this but am struggling to figure out how to achieve the proper spacing for the rotated bricks in every other row. Since I rotate them after spacing this grout spacing is smaller than the rest of the wall. I am hoping that I can just move these bricks over in order to correct for this. I suspect that I just need a way to move each brick over in successive distance so that the distance between each brick can be 3/8". I imagine this to be done by creating a series of vectors that can account for the cumulative distance moved so that rows of bricks can be moved x(n+1) distance. However I am not sure how to approach this if anyone could assist I would greatly appreciate it.

I have attached the current script and screenshots of what I am attempting to do.
View 04


_brickwall.gh (24.5 KB)

I got this working only to realize I didn’t read carefully enough: The corner is the rotation center not the middle as I have it. I might have time to have another crack at it later this week. The trig killed me but I think regardless of rotation center the solution will be similar.

I’ll post this in case it helps.
_brickwall-test.gh (14.6 KB)
I had to create a fresh file because I didn’t have one of your plugins.

Much thanks for your work on this! Approaching the brick field as a unit to array is a much smarter way to do this I think. I may be able to adapt your solution for my needs but I wouldn’t be mad at another crack at it. The trig with this kind of stuff always puts my brain in a knot for some reason so I definitely am impressed!