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
commit 444ee57d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.