Hi, I'm trying to make a function to rate a square within a square, thus the second square will form a diamond.
I'm pretty new, so I think NestList is the way to go, however, I'm not sure how to rotate the coordinates of my polygon.
squarePts = {{0, 0}, {1, 0}, {1, 1}, {0, 1}};
f7 = NestList[# ?? &, squarePts , 1]
I tried to get the middle points of each side and then rotate by 45 degree, but after the second square the thing become messy.
Thank you