distance

fun distance(x1: Float, y1: Float, x2: Float, y2: Float): Double(source)

Returns the Euclidean distance between (x1, y1) and (x2, y2).