HandleUtility.DistancePointToLineSegment Manual     Reference     Scripting  
Scripting > Editor Classes > HandleUtility
HandleUtility.DistancePointToLineSegment

static function DistancePointToLineSegment (p : Vector2, a : Vector2, b : Vector2) : float

Description

Distance from a point p in 2d to a line segment defined by two points a and b