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

7
LINES

< > BotCompany Repo | #1015131 // toPt - Point to Pt

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

Libraryless. Click here for Pure Java version (95L/1K).

static Pt toPt(Point p) {
  ret p == null ? null : Pt(p.x, p.y);
}

static Pt toPt(Dimension d) {
  ret d == null ? null : Pt(d.width, d.width);
}

Author comment

Began life as a copy of #1009514

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: #1015131
Snippet name: toPt - Point to Pt
Eternal ID of this version: #1015131/3
Text MD5: e16ce13a331714262fadf9fedd45916c
Transpilation MD5: cc8089cd20d282ae0d1c01be2ea15e8d
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-28 18:46:34
Source code size: 152 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 557
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029760 - longToPt - long to Pt