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).

1  
static Pt toPt(Point p) {
2  
  ret p == null ? null : Pt(p.x, p.y);
3  
}
4  
5  
static Pt toPt(Dimension d) {
6  
  ret d == null ? null : Pt(d.width, d.width);
7  
}

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: 375 / 452
Version history: 2 change(s)
Referenced in: [show references]