Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1035648 // rectRelative

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Compilation Failed (9499L/53K).

1  
static Rect rectRelative(double x1, double y1, double x2, double y2, Rect r) {
2  
  ret rectFromPoints(
3  
    iround_blend(r.x, r.x2(), x1),
4  
    iround_blend(r.y, r.y2(), y1),
5  
    iround_blend(r.x, r.x2(), x2),
6  
    iround_blend(r.y, r.y2(), y2));
7  
}

Author comment

Began life as a copy of #1005846

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035648
Snippet name: rectRelative
Eternal ID of this version: #1035648/2
Text MD5: b87c8f1dd0ead42b5b5893cd38506f27
Transpilation MD5: 8763a42d210203ff11c81177f5ca8c03
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-27 13:28:39
Source code size: 249 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 114 / 158
Version history: 1 change(s)
Referenced in: [show references]