1 | static LineWithColor sortLineByY(LineWithColor l) { |
2 | if (l.a.y > l.b.y) { |
3 | Pt p = l.a; |
4 | l.a = l.b; |
5 | l.b = p; |
6 | } |
7 | ret l; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015052 |
Snippet name: | sortLineByY - put a over b |
Eternal ID of this version: | #1015052/3 |
Text MD5: | 9ba0c0f72fe9a42b7f0e372b730be7d8 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-07 15:32:20 |
Source code size: | 140 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 423 / 450 |
Version history: | 2 change(s) |
Referenced in: | [show references] |