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

3
LINES

< > BotCompany Repo | #1010390 // translateDoublePt

JavaX fragment (include)

static DoublePt translateDoublePt(Pt a, DoublePt b) {
  ret a == null ? b : b == null ? DoublePt(a.x, a.y) : new DoublePt(a.x+b.x, a.y+b.y);
}

Author comment

Began life as a copy of #1009860

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: #1010390
Snippet name: translateDoublePt
Eternal ID of this version: #1010390/3
Text MD5: bbc3c1ced3814c84d4512be1c191f201
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-14 04:04:14
Source code size: 144 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 463 / 514
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)