Fixed inequality operator for Point struct

This commit is contained in:
Piotr Kania 2021-04-23 14:32:39 +02:00
parent d949f3cd6f
commit b4534b3f97

View File

@ -259,7 +259,7 @@ inline bool operator ==(const Point& a, const Point& b)
inline bool operator !=(const Point& a, const Point& b) inline bool operator !=(const Point& a, const Point& b)
{ {
return !(a.x == b.x) && !(a.y == b.y); return !(a.x == b.x) || !(a.y == b.y);
} }
/// Peform the dot product on two vectors. /// Peform the dot product on two vectors.