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

4
LINES

< > BotCompany Repo | #1016031 // rectMinSize

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

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

static Rect rectMinSize(int minW, int minH, Rect r) {
  ret r == null || r.w >= minW && r.h >= minH ? r
    : rect(r.x, r.y, max(r.w, minW), max(r.h, minH));
}

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: #1016031
Snippet name: rectMinSize
Eternal ID of this version: #1016031/7
Text MD5: 83b8dbb9bbd47f90a9e542147cc8da24
Transpilation MD5: 7dad7beb10f629c06b08d5625d910d1a
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-02 05:47:40
Source code size: 162 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 372 / 471
Version history: 6 change(s)
Referenced in: [show references]