distanceSq(x1, y1, x2, y2) → {number}
Returns the euclidean distance squared between the two given set of
coordinates (cuts out a square root operation before returning).
Parameters
Name | Type | Description |
---|---|---|
x1 | number | |
y1 | number | |
x2 | number | |
y2 | number |
Returns
number -
The distance squared between the two sets of coordinates.
- Source code: math/Math.js (Line 989)
Please login to continue.