Editar

Partilhar via


MathUtilities.ClosestPointOnLineSegmentToPoint Method

Definition

public:
 static UnityEngine::Vector3 ClosestPointOnLineSegmentToPoint(UnityEngine::Vector3 point, UnityEngine::Vector3 lineStart, UnityEngine::Vector3 lineEnd);
public static UnityEngine.Vector3 ClosestPointOnLineSegmentToPoint (UnityEngine.Vector3 point, UnityEngine.Vector3 lineStart, UnityEngine.Vector3 lineEnd);
static member ClosestPointOnLineSegmentToPoint : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 -> UnityEngine.Vector3
Public Shared Function ClosestPointOnLineSegmentToPoint (point As Vector3, lineStart As Vector3, lineEnd As Vector3) As Vector3

Parameters

point
UnityEngine.Vector3
lineStart
UnityEngine.Vector3
lineEnd
UnityEngine.Vector3

Returns

UnityEngine.Vector3

Applies to