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.