distanceFrom

open infix fun distanceFrom(other: Vector2D): Double

Calculates the euclidean distance between two points.

Return

distance between the vectors

Parameters

other

vector to compare