distanceTo

fun distanceTo(vector: Vec2): Double

Computes the distance from this vector to another vector.

Return

the distance between the vectors

Parameters

vector

the vector to compute the distance to