편집

다음을 통해 공유


MathUtilities.NearestPointToLines(Ray, Ray) Method

Definition

Find 3D point that minimizes distance to 2 lines, midpoint of the shortest perpendicular line segment between them

public:
 static UnityEngine::Vector3 NearestPointToLines(UnityEngine::Ray p, UnityEngine::Ray q);
public static UnityEngine.Vector3 NearestPointToLines (UnityEngine.Ray p, UnityEngine.Ray q);
static member NearestPointToLines : UnityEngine.Ray * UnityEngine.Ray -> UnityEngine.Vector3
Public Shared Function NearestPointToLines (p As Ray, q As Ray) As Vector3

Parameters

p
UnityEngine.Ray

ray that specifies a line

q
UnityEngine.Ray

ray that specifies a line

Returns

UnityEngine.Vector3

point nearest to the lines

Applies to