Explorar o código

-fixed distancePointPlane

Anton Rohr %!s(int64=11) %!d(string=hai) anos
pai
achega
b2842e3610
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      bbiwarg/Utility/Vector.cs

+ 3 - 0
bbiwarg/Utility/Vector.cs

@@ -212,6 +212,9 @@ namespace bbiwarg.Utility
 
             float distance = (sum * (dynamic)(-1)) / sumR;
 
+            if (distance < 0)
+                distance *= (float)(-1);
+
             return distance;
 
         }