DistancePointToLineSegment(Vector2, Vector2, Vector2)
Distance from a point p in 2d to a line segment defined by two points a and b.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static float DistancePointToLineSegment(Vector2 p, Vector2 a, Vector2 b)
Parameters
Returns
Type | Description |
|---|---|
| float |