From b4534b3f9702d1f01d77579206887b76c71b805d Mon Sep 17 00:00:00 2001 From: Piotr Kania Date: Fri, 23 Apr 2021 14:32:39 +0200 Subject: [PATCH] Fixed inequality operator for Point struct --- poly2tri/common/shapes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poly2tri/common/shapes.h b/poly2tri/common/shapes.h index 1b0a79e..54b9337 100644 --- a/poly2tri/common/shapes.h +++ b/poly2tri/common/shapes.h @@ -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.