distance(x1, y1, x2, y2) → {number}
Returns the euclidian distance between the two given set of coordinates.
Parameters
Name | Type | Description |
---|---|---|
x1 | number | |
y1 | number | |
x2 | number | |
y2 | number |
Returns
number -
The distance between the two sets of coordinates.
- Source code: math/Math.js (Line 970)
Please login to continue.