For an architectural overview, view source of the page. Bottom has an ascii diagram of the geometry, and how the program works.
For example: "a hexagon is six equilateral triangles (length h) put together around a common center"
____ _______
/\ /\ « each bisected \ | / (1/2, √3/2)
/__\/__\ triangle in it h \ | /
\ /\ / is defined by \|/ 60°
\/__\/ h the unit circle » (0,0)
Thanks for doing it (and telling about it; I'd never guess it's there).