文档

Unity Engine


Unity Engine


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
public static float DistancePointToLineSegment(Vector2 p, Vector2 a, Vector2 b)

Parameters

Returns

Type

Description

float