Version: 2020.2
public static float Distance (Vector2 a, Vector2 b);

描述

返回 a 与 b 之间的距离。

Vector2.Distance(a,b) 与 (a-b).magnitude 相同。