Correct != of Vector2d

This commit is contained in:
Zdenek Borovec 2024-03-02 15:38:11 +01:00
parent 38fb85be02
commit cfdb2cee4d

View file

@ -197,7 +197,7 @@ namespace GeometriCS.structs
/// <returns><c>true</c> if the vectors are different. Otherwise <c>false</c></returns> /// <returns><c>true</c> if the vectors are different. Otherwise <c>false</c></returns>
public static bool operator !=(Vector2d a, Vector2d b) 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));
} }
/// <summary> /// <summary>