Libraryless. Click here for Pure Java version (105L/1K).
1 | meta-for DoublePt also as IDoublePt { |
2 | static DoublePt addDoublePts(DoublePt a, DoublePt b) { |
3 | ret a == null ? b : b == null ? a : doublePt(a.x_double()+b.x_double(), a.y_double()+b.y_double()); |
4 | } |
5 | } |
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: | 158 / 239 |
Version history: | 3 change(s) |
Referenced in: | [show references] |