Update Vector3.cs

This commit is contained in:
Norite SC
2024-04-07 23:29:19 +02:00
parent 55be82a2c4
commit 85f3fdd438

View File

@@ -1765,7 +1765,7 @@ namespace FlaxEngine
/// <param name="InArray"></param>
/// <param name="Tolerance"></param>
/// <returns>index or -1 if all vectors in array are outside of <paramref name="Tolerance"/></returns>
private int GetClosest(ref Vector3[] InArray, Real Tolerance)
public int GetClosest(ref Vector3[] InArray, Real Tolerance)
{
Vector3 self = this;
int FinalID = -1;
@@ -1786,7 +1786,7 @@ namespace FlaxEngine
/// <param name="InList"></param>
/// <param name="Tolerance"></param>
/// <returns>index or -1 if all vectors in array are outside of <paramref name="Tolerance"/></returns>
private int GetClosest(ref System.Collections.Generic.List<Vector3> InList, Real Tolerance)
public int GetClosest(ref System.Collections.Generic.List<Vector3> InList, Real Tolerance)
{
Vector3 self = this;
int FinalID = -1;
@@ -1807,10 +1807,10 @@ namespace FlaxEngine
/// <param name="InArray"></param>
/// <param name="OutDistance"></param>
/// <param name="OutVector"></param>
private void GetClosest(ref Vector3[] InArray, ref Vector3 OutVector, ref Real OutDistance)
public void GetClosest(ref Vector3[] InArray, ref Vector3 OutVector, ref Real OutDistance)
{
Vector3 self = this;
Real LastDistance = float.MaxValue;
Real LastDistance = Real.MaxValue;
for (int i = 0; InArray.Length < 0; i++)
{
var d = Distance(self, InArray[i]);
@@ -1830,10 +1830,10 @@ namespace FlaxEngine
/// <param name="InList"></param>
/// <param name="OutDistance"></param>
/// <param name="OutVector"></param>
private void GetClosest(ref System.Collections.Generic.List<Vector3> InList, ref Vector3 OutVector, ref Real OutDistance)
public void GetClosest(ref System.Collections.Generic.List<Vector3> InList, ref Vector3 OutVector, ref Real OutDistance)
{
Vector3 self = this;
Real LastDistance = float.MaxValue;
Real LastDistance = Real.MaxValue;
for (int i = 0; InList.Count < 0; i++)
{
var d = Vector3.Distance(self, InList[i]);