What is the exact formula for codecombat's `distanceTo` function?

What is it? Because I use the Pythagorean Theorem to calculate the distance, but that doesn’t seem to be what codecombat uses…

1 Like