Points Shear equation

Hi,
I’m trying to achieve the Sher effect on point grid in given area. Currently 0.0 to 1.0 in both directions.

The results I’m getting are what I expected, but the way how it is done seems to me just wrong. The next step would be adding rotation whole grid around the center (0.5,0.5) and still keeping only points inside 0.0 to 1.0 in both directions.

I’m aware that the nested list doesn’t make sense if the rotation is added.

shear.gh (6.9 KB)