1 | static Pt normalizePointToScreen(Pt p) { |
2 | ret new Pt( |
3 | min(screenWidth()-1, max(p.x, 0)), |
4 | min(screenHeight()-1, max(p.y, 0))); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005822 |
Snippet name: | normalizePointToScreen |
Eternal ID of this version: | #1005822/1 |
Text MD5: | 08395e0b057848f509e885f8ab8cc955 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-10 16:34:41 |
Source code size: | 140 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 571 / 584 |
Referenced in: | [show references] |