MathUtilities.ClosestPointOnLineSegmentToPoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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