Ernie loves cooking and it's always worth the wait as he follows his curiously precise recipe to make Ginger Crunch Cookies. So I was happy to drop around when he invited me to help test his latest invention - a pneumatic cookie-cutter.
"I've made two of them," said Ernie. "They use pneumatic actuators to transfer all the dough inside the cut area onto the cooking tray. This one cuts squares and the other one cuts equilateral triangles."
"The triangular cutter seems a bit bigger", I commented.
"Only in linear dimensions", Ernie responded. "The triangle has exactly the same $10,000\text{ mm}^2$ area as the square".
Ernie already had the dough rolled out so it covered most of the surface of the large rectangular cooking bench and was about to cut the cookies, when he noticed that the readouts of the twin thermometers in his 'cooking furnace' disagreed by more than 0.6°K.
"Can't have that", he muttered as he reached for his screwdriver to make some necessary adjustments. "Can you cut them out for me? The instructions are at the end of the recipe."
I turned to the last page of his cooking notes and was more than a little nervous when I read the following instructions:
Cutting
Step A. Using the square cutter:
1) Position the cutter somewhere over the table
2) Rotate the cutter to an angle $\theta$ relative to one edge of the table
3) Make a cut and transfer the square piece of dough inside the cut region to the tray.
4) Repeat step 3, with the cutter at the same angle $\theta$, at all positions on the table displaced $md$ horizontally and $nd$ vertically (where $m$ and $n$ are integers $\{...-2,-1,0,1,2...\}$ and $d$ is a chosen displacement), and transfer the square piece of dough inside each cut square region to the tray.Step B. Using the triangular cutter:
1) Position the cutter at a chosen position over the table
2) Rotate the cutter to an angle $\phi$ relative to one edge of the table
3) Make a cut and transfer all the pieces of dough inside the cut region to the tray.
4) Repeat step 3, with the cutter at the same angle $\phi$, at all positions on the table displaced $md$ horizontally and $nd$ vertically (where $m$ and $n$ are integers $\{...-2,-1,0,1,2...\}$ and $d$ is the same displacement as used for the square cutter), and transfer all the pieces of dough inside each cut triangular region to the tray.Note. Choose positions and angles of the square and triangular cutters so you can use the largest value of $d$ possible, such that after following steps A and B, there is no dough left on the table (except maybe for a little bit round the edges of the table)
"So you want a set of perfectly square cookies - that don't overlap one-another?", I asked. "Correct", Ernie replied. "Plus, the odd-shaped bits that the triangular cutter will make in Step B...?". "Correct...", Ernie agreed again. "...and of course, make sure that you use the biggest value of $d$ possible! Because that's the only way to cut perfect cookies".
I tried sketching a few test patterns to find a suitable tiling on a spare copy of one of Ernie's recipes, but couldn't sort out the optimal value for $d$. So while still repairing the oven, Ernie drew a quick diagram on the dusty floor, and annotated it with angles accurate to the nearest second of arc, and distances to the nearest micron. I cut the cookies at the required spacing and sure enough, after the last triangular cut was made all the dough was gone. The cookies made it into the oven in time and were a great success.
Now I have a bit of a problem. I borrowed Ernie's cookie cutters and plan to make him some perfect ginger cookies for his birthday, but can't remember Ernie's diagram or distance measurements for efficient cuts. Can you help me? Accuracy to the nearest $\frac1{10}^{th}$ of a mm and $\frac1{10}^{th}$ of a degree (and maybe a simple diagram) should be enough.