Guest User

Untitled

a guest
Jun 25th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. bool operator < (const QPointF& lhs, const QPointF& rhs)
  2. {
  3.     return lhs.x() < rhs.x() || (lhs.x() == rhs.x() && lhs.y() < rhs.y());
  4. }
  5.  
  6. bool operator > (const QPointF& lhs, const QPointF& rhs)
  7. {
  8.     return rhs < lhs;
  9. }
  10.  
  11.  
  12.         for (; i != enumerated.end(); ++i) {
  13.             if (**i < **j) {
  14.                 painter.drawPoint(**i);
  15.             } else {
  16.                 while (**i > **j) {
  17.                     notInRect.push_back(*j);
  18.                     ++j;
  19.                 }
  20.                 while (**i == **j)
  21.                     ++j;
  22.             }
  23.         }
Add Comment
Please, Sign In to add comment