The vertex A,B of the square ABCD with side length $\sqrt{2}$ is on the circle with radius $\sqrt{2}$, vertex C,D is inside the circle, roll the square ABCD along the inside of the circle counterclockwise without sliding.
My code is already working, but I believe he can be more concise
Clear["`*"];
p0 = N @ {{-√2/2, -√6/2}, {√2/2, -√6/2}, {√2/2, √2-√6/2}, {-√2/2, √2-√6/2}};
p1[t_] := RotationTransform[t,p0[[1]]][p0];
p2[t_] := RotationTransform[t,p1[π/6][[4]]][p1[π/6]];
p3[t_] := RotationTransform[t,p2[π/6][[3]]][p2[π/6]];
p4[t_] := RotationTransform[t,p3[π/6][[2]]][p3[π/6]];
p5[t_] := RotationTransform[t,p4[π/6][[1]]][p4[π/6]];
p6[t_] := RotationTransform[t,p5[π/6][[4]]][p5[π/6]];
Manipulate[
Graphics[
{Circle[{0, 0}, Sqrt[2]], EdgeForm[Black], Opacity[0.1],
Polygon[
Which[
t < π/6, p1[t],
t < 2π/6, p2[t-π/6],
t < 3π/6, p3[t-2π/6],
t < 4π/6, p4[t-3π/6],
t < 5π/6, p5[t-4π/6],
True, p6[t-5π/6]]]},
PlotRange -> 2],
{t, 0, 6π/6}]
Some attempts, but lacks the rotation process
With[{p0=N@{{-√2/2,-√6/2},{√2/2,-√6/2},{√2/2,√2-√6/2},{-√2/2,√2-√6/2}}},
Manipulate[With[{pts=Fold[RotationTransform[π/6,#[[-Mod[#2,4,1]]]]@#&,p0,Range[0,i]]},
Graphics[{Circle[{0,0},Sqrt[2]],{EdgeForm[Black],Opacity[0.1],Polygon@pts}},
PlotRange->2]],{i,0,5}]]
Do you have a better way?
Tips that may be useful
Which[t < π/6, t, t < (2 π)/6, t - π/6, t < (3 π)/6, t - (2 π)/6, t < (4 π)/6, t - (3 π)/6, t < (5 π)/6, t - (4 π)/6, True, t - (5 π)/6] == Mod[t, Pi/6]
Rectangle
---not each point that defines one. $\endgroup$