Bearbeiten

Share via


MathUtilities.NearestPointToLinesLeastSquares(IEnumerable<Ray>) Method

Definition

Find 3D point that minimizes distance to a set of 2 or more lines

public:
 static UnityEngine::Vector3 NearestPointToLinesLeastSquares(System::Collections::Generic::IEnumerable<UnityEngine::Ray> ^ rays);
public static UnityEngine.Vector3 NearestPointToLinesLeastSquares (System.Collections.Generic.IEnumerable<UnityEngine.Ray> rays);
static member NearestPointToLinesLeastSquares : seq<UnityEngine.Ray> -> UnityEngine.Vector3
Public Shared Function NearestPointToLinesLeastSquares (rays As IEnumerable(Of Ray)) As Vector3

Parameters

rays
IEnumerable<UnityEngine.Ray>

each ray specifies an infinite line

Returns

UnityEngine.Vector3

point nearest to the set of lines

Applies to