3 ms·
What do you mean brute force? We can compute these things using iteration or polynomial approximations (sufficient for 64 bit).
by groundzeros2015 7mo ago
What do you mean brute force?
We can compute these things using iteration or polynomial approximations (sufficient for 64 bit).
- fatih-erikli-cg 7mo agoThere is a loop of is it close enough or not something like that. It is a brute force. Atan2 purely looks like that to me.
- groundzeros2015 7mo agoIt’s not just guessing, there is theory to prove convergence and rates of converge. Many algorithms require iteration.
- fatih-erikli-cg 7mo agoI don't think these functions are programmed as it looks like they are in their Math form. Atan2 is something like a line-to rotating, if the given point is close to any pixel of line-to, returns how many times the line to is rotated. It is almost a motion but an algorithm. This is why I'm telling it is a brute force.