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

3
LINES

< > TinyBrain | #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   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

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