Version: 2019.2
public static float DistancePointToLine (Vector2 p, Vector2 a, Vector2 b);

説明

2D の a 点と b 点の2点で定義されるラインまでの p 点からの距離