distance

fun distance(aX: Float, aY: Float, bX: Float, bY: Float): Float
fun distance(aX: Int, aY: Int, bX: Int, bY: Int): Float

Return

Euclidean distance between points A and B

Parameters

aX

point A x coordinate

aY

point A y coordinate

bX

point B x coordinate

bY

point B y coordinate