Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Watching the video, it's noteworthy that this system that works and renders in a Cartesian coordinate system is able to essentially create 60 degree rotations of a pattern without any trig function.

Given that a rise of 1 and run of around 0.577 will give you approximately 60 degrees (60.01505399), I have to wonder if there is some correlation between that approximate ratio and the number of steps required to complete the pattern.

With that thought, it's noteworthy that the pattern isn't quite right when it finally comes back to the beginning - which essentially is a little bit of rounding error at the end. That makes sense if what I'm imagining to be a correlation above is true, because a slope/offset to create a perfect 60 degrees is an irrational number.



It’s on a hexagonal grid.


Doh. I went waaaay too deep in the thought rabbit hole...


30 and 60 degrees don't need trig functions. See: https://en.wikipedia.org/wiki/Trigonometric_constants_expres...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: