euclidean static method

dynamic euclidean(
  1. dynamic dx,
  2. dynamic dy
)

Euclidean distance. @param {number} dx - Difference in x. @param {number} dy - Difference in y. @return {number} sqrt(dx * dx + dy * dy)

Implementation

static euclidean(dx, dy) {
    return sqrt(dx * dx + dy * dy);
}