distance

fun distance(v: Vec2): Double

Finds the distance between two vectors.

Return

Returns distance from vector v to the current instance vector.

Parameters

v

Vector to find distance from.