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

7
LINES

< > BotCompany Repo | #1010660 // rectFromPoints - synonym of pointsRect - create Rect from x1, y1, x2, y2

JavaX fragment (include)

1  
static Rect rectFromPoints(int x1, int y1, int x2, int y2) {
2  
  ret pointsRect(x1, y1, x2, y2);
3  
}
4  
5  
static Rect rectFromPoints(Pt a, Pt b) {
6  
  ret pointsRect(a.x, a.y, b.x, b.y);
7  
}

Author comment

Began life as a copy of #1005898

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010660
Snippet name: rectFromPoints - synonym of pointsRect - create Rect from x1, y1, x2, y2
Eternal ID of this version: #1010660/3
Text MD5: c7512f2354da81ece79e6722f190ab3d
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-24 03:11:36
Source code size: 184 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 458 / 520
Version history: 2 change(s)
Referenced in: [show references]