From cfdb2cee4dd875462b93de535f304cfc893f9305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Borovec?= Date: Sat, 2 Mar 2024 15:38:11 +0100 Subject: [PATCH] Correct != of Vector2d --- structs/Vector2d.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/Vector2d.cs b/structs/Vector2d.cs index 52904ef..e954beb 100644 --- a/structs/Vector2d.cs +++ b/structs/Vector2d.cs @@ -197,7 +197,7 @@ namespace GeometriCS.structs /// true if the vectors are different. Otherwise false public static bool operator !=(Vector2d a, Vector2d b) { - return !Utils.DoubleEquals(a.X, b.X) && Utils.DoubleEquals(a.Y, b.Y); + return !(Utils.DoubleEquals(a.X, b.X) && Utils.DoubleEquals(a.Y, b.Y)); } ///