MathUtilities.DistanceOfPointToLineSegment(Vector3, Vector3, Vector3) 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 float DistanceOfPointToLineSegment(UnityEngine::Vector3 point, UnityEngine::Vector3 lineStart, UnityEngine::Vector3 lineEnd);
public static float DistanceOfPointToLineSegment (UnityEngine.Vector3 point, UnityEngine.Vector3 lineStart, UnityEngine.Vector3 lineEnd);
static member DistanceOfPointToLineSegment : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 -> single
Public Shared Function DistanceOfPointToLineSegment (point As Vector3, lineStart As Vector3, lineEnd As Vector3) As Single
Parameters
- point
- UnityEngine.Vector3
- lineStart
- UnityEngine.Vector3
- lineEnd
- UnityEngine.Vector3