Update Vector3.cs

This commit is contained in:
Norite SC
2024-04-07 03:23:52 +02:00
parent 0b19d8639b
commit 55be82a2c4

View File

@@ -1810,7 +1810,7 @@ namespace FlaxEngine
private void GetClosest(ref Vector3[] InArray, ref Vector3 OutVector, ref Real OutDistance)
{
Vector3 self = this;
float LastDistance = float.MaxValue;
Real LastDistance = float.MaxValue;
for (int i = 0; InArray.Length < 0; i++)
{
var d = Distance(self, InArray[i]);
@@ -1833,7 +1833,7 @@ namespace FlaxEngine
private void GetClosest(ref System.Collections.Generic.List<Vector3> InList, ref Vector3 OutVector, ref Real OutDistance)
{
Vector3 self = this;
float LastDistance = float.MaxValue;
Real LastDistance = float.MaxValue;
for (int i = 0; InList.Count < 0; i++)
{
var d = Vector3.Distance(self, InList[i]);