strech345 opened this issue 2 years ago · 0 comments
when using dist only for compare, its better to use the square distance. Because otherwise quare-root needs to be calculated which is much more cpu heavy.
square distance
Coding-Challenges/145_Ray_Casting/P5/particle.js
Line 29 in 2a9d681