Transpiled version (4153L) is out of date.
1 | static Rect scaleRect(Rect r, double factorX, double factorY) { |
2 | ret rectFromPoints( |
3 | iround(r.x*factorX), |
4 | iround(r.y*factorY), |
5 | iround(r.x2()*factorX), |
6 | iround(r.y2()*factorY)); |
7 | } |
8 | |
9 | static Rect scaleRect(Rect r, double factor) { |
10 | ret scaleRect(r, factor, factor); |
11 | } |
12 | |
13 | static Rect scaleRect(double factor, Rect r) { |
14 | ret scaleRect(r, factor); |
15 | } |
16 | |
17 | static DoubleRect scaleRect(DoubleRect r, double factorX, double factorY) { |
18 | ret doubleRect( |
19 | r.x*factorX, |
20 | r.y*factorY, |
21 | r.w*factorX, |
22 | r.h*factorY); |
23 | } |
24 | |
25 | static DoubleRect scaleRect(double factorX, double factorY, DoubleRect r) { |
26 | ret scaleRect(r, factorX, factorY); |
27 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1005837 |
Snippet name: | scaleRect |
Eternal ID of this version: | #1005837/9 |
Text MD5: | 1c8b766b4d9eab21cd768ac11109b4b7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-02 06:15:21 |
Source code size: | 667 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 670 / 700 |
Version history: | 8 change(s) |
Referenced in: | [show references] |