static Pt normalizePointToScreen(Pt p) { ret new Pt( min(screenWidth()-1, max(p.x, 0)), min(screenHeight()-1, max(p.y, 0))); }
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: | 570 / 582 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |