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

3
LINES

< > BotCompany Repo | #1006794 // addPts - add two points

JavaX fragment (include)

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

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: #1006794
Snippet name: addPts - add two points
Eternal ID of this version: #1006794/2
Text MD5: 9d06aadd98f696079e290291303771c6
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-22 00:35:54
Source code size: 98 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 505 / 577
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009860 - translatePt - synonym of addPts - add two points
#1033749 - addDoublePts - add two points