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

9
LINES

< > BotCompany Repo | #1034864 // doublePtsToDoubleArray

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

Transpiled version (5348L) is out of date.

static double[] doublePtsToDoubleArray(L<DoublePt> l) {
  int n = l(l);
  double[] array = new[n*2];
  for i, p over l: {
    array[i*2] = p.x;
    array[i*2+1] = p.y;
  }
  ret array;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034864
Snippet name: doublePtsToDoubleArray
Eternal ID of this version: #1034864/4
Text MD5: cc2dbe289543cf37d977e650b35ddbff
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-12 20:47:08
Source code size: 194 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 85 / 121
Version history: 3 change(s)
Referenced in: [show references]