From c08527deb3f6a4e67ce622bda0cb9fd2f46f4b5a Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Thu, 12 Jul 2012 20:00:30 +0200 Subject: [PATCH] fixed p2t::Point inequility operator --- 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 a69bd75..caff5ed 100644 --- a/poly2tri/common/shapes.h +++ b/poly2tri/common/shapes.h @@ -254,7 +254,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 == b); } /// Peform the dot product on two vectors.