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

6
LINES

< > BotCompany Repo | #1035412 // g22connectAnchors (with straight line)

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

Libraryless. Click here for Pure Java version (12089L/70K).

static G22Mesh.Curve g22connectAnchors(G22Mesh mesh, int iAnchor1, int iAnchor2) {
  var a1 = mesh.getAnchor(iAnchor1);
  var a2 = mesh.getAnchor(iAnchor2);
  ret mesh.addCurve(new G22Mesh.Curve(a1, a2,
    new BresenhamLineDrawer(a1.pt, a2.pt).points()));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035412
Snippet name: g22connectAnchors (with straight line)
Eternal ID of this version: #1035412/1
Text MD5: 4183955f3bec9e0f4e0fc6b0a8ef6144
Transpilation MD5: 110126e83472f7d9b1c0d5f5419e943d
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-06 17:09:36
Source code size: 265 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 160
Referenced in: [show references]