Transpiled version (94L) is out of date.
1 | static int ptCoord(Pt p, int dimension) { |
2 | ret p == null ? 0 : dimension == 0 ? p.x : p.y; |
3 | } |
4 | |
5 | static int ptCoord(int dimension, Pt p) { |
6 | ret ptCoord(p, dimension); |
7 | } |
Began life as a copy of #1009862
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032234 |
Snippet name: | ptCoord - get coordinate of Pt (0 for x, 1 for y) |
Eternal ID of this version: | #1032234/2 |
Text MD5: | b313d667de6262bbfa1e094c5d35947e |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-21 02:08:13 |
Source code size: | 169 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 153 / 240 |
Version history: | 1 change(s) |
Referenced in: | [show references] |