DistancePointToLineSegment(Vector2, Vector2, Vector2)
Distance from a point p in 2d to a line segment defined by two points a and b.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static float DistancePointToLineSegment(Vector2 p, Vector2 a, Vector2 b)
Parameters
Returns
Type | Description |
|---|---|
| float |