Browse Source

Correct Vector.distance(Vector)

jost_vincent.schultz 11 năm trước cách đây
mục cha
commit
43c861de47
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)