Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -1, 2 0,3 1,4 2,5 3,6
- 0, 2 1,3 2,4 3,5
- 0,1 1,2 2,3 3,4 4,5
- 3,6
- 2,5 3,5 4,5
- 1,4 2,4 3,4
- 0,3 1,3 2,3
- -1,2 0,2 1,2
- -0,1
- var comparator()
- {
- if(a.x == b.x && a.y == b.y)
- return 0;
- if(a.x < b.x) return -1;
- if(a.x == b.x){
- if(a.y < b.y)
- return -1;
- else
- return 1;
- }
- return 1;
- }
- for elemet E and any element Q:
- E == Q <=> E.x - t = Q.x && E.y - t = Q.y; t from N
- if we increase X by non negative constant and and decrease Y by non negative constant
- E.x + i = Q.x && E.y - j = Q.y
- and if we move the origin point on the horizontal line
- 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