Berechnen Sie den Abstand zwischen zwei Pixelhypot

Math.hypot(x2-x1, y2-y1)
Drab Deer