distance

fun distance(other: Vector2): Double

Calculates the distance between two vectors

Return

The distance between the two vectors

Parameters

other

The other vector