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

7
LINES

< > BotCompany Repo | #1031125 // rectFromPointsInclusiveSorted

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

Libraryless. Click here for Pure Java version (2980L/17K).

static Rect rectFromPointsInclusiveSorted(int x1, int y1, int x2, int y2) {
  ret rectFromPoints(
    min(x1, x2),
    min(y1, y2),
    max(x1, x2)+1,
    max(y1, y2)+1);
}

Author comment

Began life as a copy of #1005898

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031125
Snippet name: rectFromPointsInclusiveSorted
Eternal ID of this version: #1031125/2
Text MD5: 4b143cf5b34e7345a43bb35617d97a5f
Transpilation MD5: 8b46ee9aec164a371eab9f67bb48b58b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-07 16:36:34
Source code size: 178 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 206
Version history: 1 change(s)
Referenced in: [show references]