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

3
LINES

< > BotCompany Repo | #1035874 // ptToIndex

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

Libraryless. Click here for Pure Java version (125L/1K).

static int ptToIndex(Pt p, int w) {
  ret p.y*w+p.x;
}

Author comment

Began life as a copy of #1035871

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035874
Snippet name: ptToIndex
Eternal ID of this version: #1035874/1
Text MD5: 9b987cdaa2cf625efc05dc5aee5a2b42
Transpilation MD5: 25ce22e925ac6d49029ee67a37520ecc
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-05 19:25:29
Source code size: 56 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 186
Referenced in: [show references]