MathUtilities.NearestPointToLinesLeastSquares(IEnumerable<Ray>) 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.
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