function getDistance2d (shared-side)
Available since version: 0.3.0
Get the 2d distance between two points.
Declaration
number getDistance2d(number x1, number y1, number x2, number y2)
Parameters
numberx1: The position on X axis of the first point.numbery1: The position on Y axis of the first point.numberx2: The position on X axis of the second point.numbery2: The position on Y axis of the second point.
Returns number
The distance between the two points.