Comment by catlifeonmars
1 month ago
> you could also consider skipping the sqrt.
This is a trick I reach for all the time: it’s cheaper to compare squared distances than completing the Euclidean calculation. For example, to determine whether to stop calculating lerp: x*x+y*y <= epsilon.
No comments yet
Contribute on Hacker News ↗