Hypotenuse In Action¶
PHP has a built-in Euclidean distance function, if you need to calculate a distance!
Sounds complex, but it’s just the hypotenus! Without the overflow risk of doing it manually.
If you ONLY need to compare distances, don’t miss the tip at the end of the code snippet!