static Rect growRectProportionally(double p, Rect r) { int growX = iround(p*r.w), growY = iround(p*r.h); ret growRect(r, growX, growY); }
Began life as a copy of #1006163
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022987 |
Snippet name: | growRectProportionally |
Eternal ID of this version: | #1022987/1 |
Text MD5: | 9310cd7f77e0d469a7d3454ae250f02d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-17 08:47:19 |
Source code size: | 144 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 257 / 295 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |