4 ms·
Be sure to read the appendix, which is an easy-to-miss link at the end: http://h14s.p5r.org/2012/09/0x5f3759df-appendix.html http://h14s.p5r.org/2012/09/0x5f375
by lemoncucumber 9y ago
Be sure to read the appendix, which is an easy-to-miss link at the end: http://h14s.p5r.org/2012/09/0x5f3759df-appendix.html http://h14s.p5r.org/2012/09/0x5f3759df-appendix.html
The appendix was by far the most interesting part to me, after reading it I felt like I really got the intuition behind how the trick works.
- numlocked 9y agoWow! Totally agree. The visualization makes it incredibly intuitive. It also makes me appreciate the importance and elegance of the floating point to int trick, which my brain had sort of elided over previously, as the "magic constant" seemed like the crux.