yk35 / poly2tri

Automatically exported from code.google.com/p/poly2tri

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Point inequality (!=) logic is incorrect

GoogleCodeExporter opened this issue · comments

The != operator for Point class should be:

inline bool operator !=(const Point& a, const Point& b)
{
  return !(a.x == b.x) || !(a.y == b.y);
}

Note the use of ||.

Original issue reported on code.google.com by ckohn...@gmail.com on 11 Jul 2013 at 1:09