From 85f3fdd4381c4eaeec352ede64746b49ceecfb0b Mon Sep 17 00:00:00 2001 From: Norite SC <162097313+cNori@users.noreply.github.com> Date: Sun, 7 Apr 2024 23:29:19 +0200 Subject: [PATCH] Update Vector3.cs --- Source/Engine/Core/Math/Vector3.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Engine/Core/Math/Vector3.cs b/Source/Engine/Core/Math/Vector3.cs index a745bc5c6..d0974874a 100644 --- a/Source/Engine/Core/Math/Vector3.cs +++ b/Source/Engine/Core/Math/Vector3.cs @@ -1765,7 +1765,7 @@ namespace FlaxEngine /// /// /// index or -1 if all vectors in array are outside of - 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 /// /// /// index or -1 if all vectors in array are outside of - private int GetClosest(ref System.Collections.Generic.List InList, Real Tolerance) + public int GetClosest(ref System.Collections.Generic.List InList, Real Tolerance) { Vector3 self = this; int FinalID = -1; @@ -1807,10 +1807,10 @@ namespace FlaxEngine /// /// /// - 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 /// /// /// - private void GetClosest(ref System.Collections.Generic.List InList, ref Vector3 OutVector, ref Real OutDistance) + public void GetClosest(ref System.Collections.Generic.List 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]);