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

5
LINES

< > BotCompany Repo | #1033749 // addDoublePts - add two points

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

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

meta-for DoublePt also as IDoublePt {
  static DoublePt addDoublePts(DoublePt a, DoublePt b) {
    ret a == null ? b : b == null ? a : doublePt(a.x_double()+b.x_double(), a.y_double()+b.y_double());
  }
}

Author comment

Began life as a copy of #1006794

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033749
Snippet name: addDoublePts - add two points
Eternal ID of this version: #1033749/4
Text MD5: 2dbd134be3b5800a30416e13d63854f6
Transpilation MD5: 1bb8bde26c3d3aec3eb59a5b42b8992a
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-17 18:53:24
Source code size: 208 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 236
Version history: 3 change(s)
Referenced in: [show references]