arunsrinivaasrs / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Point inequality (!=) logic is incorrect #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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