Explorar el Código

Correct Vector.distance(Vector)

jost_vincent.schultz hace 11 años
padre
commit
43c861de47
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bbiwarg/Utility/Vector.cs

+ 1 - 1
bbiwarg/Utility/Vector.cs

@@ -114,7 +114,7 @@ namespace bbiwarg.Utility
         }
         public T distance(Vector<T> vector)
         {
-            return (this - vector).norm();
+            return (vector - this).norm();
         }
 
         private static void checkLength(Vector<T> vector1, Vector<T> vector2)