Merge pull request #27 from piotrkania-here/fixed_point_operator

Fixed inequality operator for Point struct
This commit is contained in:
Jan Niklas Hasse
2021-04-24 11:11:52 +02:00
committed by GitHub

View File

@@ -259,7 +259,7 @@ 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.