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

3
LINES

< > BotCompany Repo | #1032080 // doubleRectFromPoints - create DoubleRect from x1, y1, x2, y2

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

Libraryless. Click here for Pure Java version (3283L/18K).

static DoubleRect doubleRectFromPoints(double x1, double y1, double x2, double y2) {
  ret new DoubleRect(x1, y1, x2-x1, y2-y1);
}

Author comment

Began life as a copy of #1005898

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032080
Snippet name: doubleRectFromPoints - create DoubleRect from x1, y1, x2, y2
Eternal ID of this version: #1032080/2
Text MD5: 45fd25122cbe39c6d51180db674d6ce1
Transpilation MD5: 1f5417dc0812a58c02ff70a2885a245b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 12:39:54
Source code size: 132 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 91 / 127
Version history: 1 change(s)
Referenced in: [show references]