How to get domain2 of a small rectangle inside big rectangle

How to get domain2 of a small rectangle in big rectangle
Assuming the big rectangle is conside reparamed with domain (0-1)(0-1)
with any one of the four points of the big rec being the axies direction

I was dividing the width and length of deconstructed rectangle and then it becomes really complicated. I am thinking there must be something I missed a much more simply way to do this. Thanks


domain2_re.gh (11.5 KB)

3 Likes

Thanks