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

14
LINES

< > BotCompany Repo | #1033738 // DoubleEdge

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

Transpiled version (4849L) is out of date.

srecord DoubleEdge(DoublePt a, DoublePt b) {
  *(double x1, double y1, double x2, double y2) {
    a = DoublePt(x1, y1);
    b = DoublePt(x2, y2);
  }
  
  DoublePt a() { ret a; }
  DoublePt b() { ret b; }
  
  double x1() { ret a.x; }
  double y1() { ret a.y; }
  double x2() { ret b.x; }
  double y2() { ret b.y; }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033738
Snippet name: DoubleEdge
Eternal ID of this version: #1033738/6
Text MD5: 7a24a522a0630d1f78985429261d4db7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-01 21:05:54
Source code size: 331 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 97 / 177
Version history: 5 change(s)
Referenced in: [show references]