I read this article and I know it’s written in English, but I’ve accepted defeat in trying to understand it.
I write code for a living and I’m doing my best to ignore the feelings of inadequacy I’m currently experiencing.
I read this article and I know it’s written in English, but I’ve accepted defeat in trying to understand it.
I write code for a living and I’m doing my best to ignore the feelings of inadequacy I’m currently experiencing.
xavier666@lemm.ee 3 days ago
I may have shared the link but even I don’t know how it how it works.
It’s like admiring the Eiffel Tower; you can understand that it’s a marvel of engineering without understanding the underlying engineering concepts. Such experiences are rare but they truly humble you.
Regarding the square root, understand the following concepts
0010 << 1 → 0100
n
with a nice shift amountx
(I have greatly greatly over-simplified this), then you can calculate the inverse sq. root since inverse square root is2^(-1/2)
The resultant shifting gives us an answer which is close enough to the answer, and that is good enough for FPS games for calculation of reflections.
PS: Someone who is more experienced in this domain can correct me if I’m wrong.