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

15
LINES

< > BotCompany Repo | #1009130 // rect

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

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

static Rect rect(int x, int y, int w, int h) {
  ret Rect(x, y, w, h);
}

static Rect rect(Pt p, int w, int h) {
  ret Rect(p.x, p.y, w, h);
}

static Rect rect(int w, int h) {
  ret Rect(0, 0, w, h);
}

ifclass BWImageAndRect
static Rect rect(BWImageAndRect r) { ret r == null ? null : r.rect; }
endif

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009130
Snippet name: rect
Eternal ID of this version: #1009130/4
Text MD5: bbb32d7e79bf5d43ca9901e1041abcfb
Transpilation MD5: 042a181b0b15d356bb624c6042f98520
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-07 16:46:43
Source code size: 316 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 570 / 662
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)