christianp / aperiodic-monotile

Smith, Myers, Kaplan and Goodman-Strauss's aperiodic monotile, in a variety of formats
Creative Commons Zero v1.0 Universal
203 stars 20 forks source link

Cleaning up extraneous digits in coordinates #1

Closed DavidMichaelRoberts closed 1 year ago

DavidMichaelRoberts commented 1 year ago

Edited what seems like machine-created svg to remove extraneous digits and trim viewBox numbers to have viewer decimal places. These numbers could go down further, as long as the tile fits on the page.

It might be good to add a comment in the source on what the actual real numbers are for the coordinates that look like they might be irrational, in case people scrape this to reproduce the tile for their own purposes.

DavidMichaelRoberts commented 1 year ago

The irrational numbers involved all seem to be small multiples (namely 6, -1, and 3) of sqrt(3)/2.

christianp commented 1 year ago

Thanks! I hadn't thought about people looking at the source code for coordinates, so I'll reformat it to make that clearer.

All the points lie on a triangular grid. I'll do a drawing showing that.

DavidMichaelRoberts commented 1 year ago

I've further edited i my fork to make the file much more readable, including the cheat-sheet for exact real values, in case you want an even better version. Let me know if I should make another pull request/reopen this one, so you can get it