Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. -1, 2 0,3 1,4 2,5 3,6
  2. 0, 2 1,3 2,4 3,5
  3. 0,1 1,2 2,3 3,4 4,5
  4.  
  5. 3,6
  6. 2,5 3,5 4,5
  7. 1,4 2,4 3,4
  8. 0,3 1,3 2,3
  9. -1,2 0,2 1,2
  10. -0,1
  11.  
  12. var comparator()
  13. {
  14. if(a.x == b.x && a.y == b.y)
  15. return 0;
  16. if(a.x < b.x) return -1;
  17. if(a.x == b.x){
  18. if(a.y < b.y)
  19. return -1;
  20. else
  21. return 1;
  22. }
  23. return 1;
  24. }
  25.  
  26. for elemet E and any element Q:
  27. E == Q <=> E.x - t = Q.x && E.y - t = Q.y; t from N
  28.  
  29. if we increase X by non negative constant and and decrease Y by non negative constant
  30. E.x + i = Q.x && E.y - j = Q.y
  31.  
  32. and if we move the origin point on the horizontal line
  33. E.x + t + i = Q.x && E.y + t - j = Q.y t from N, i, j >= 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement