distance

fun distance(x1: double, y1: double, x2: double, y2: double): double

Returns the distance between two points.

Return

the distance between the two sets of specified coordinates.

Since

1.2

Parameters

x1

the X coordinate of the first specified point

y1

the Y coordinate of the first specified point

x2

the X coordinate of the second specified point

y2

the Y coordinate of the second specified point