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

8
LINES

< > BotCompany Repo | #1035055 // onePathDirection_long - points encoded as long

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

Libraryless. Click here for Pure Java version (738L/4K).

static long onePathDirection_long(int index) {
  ret ptToLong(onePathDirections()[index]);
}

static long onePathDirection_long(long p, int index) {
  Pt p2 = onePathDirection(index);
  ret twoIntsToLong(firstIntFromLong(p)+p2.x, secondIntFromLong(p)+p2.y);
}

Author comment

Began life as a copy of #1034962

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035055
Snippet name: onePathDirection_long - points encoded as long
Eternal ID of this version: #1035055/4
Text MD5: e128f80ec6b1097dfeb3e2090c2db25f
Transpilation MD5: 748800379f21d09db7483272ac0ae7ca
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-26 03:01:39
Source code size: 266 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 134 / 190
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)