1 | sclass DPt {
|
2 | double x, y; |
3 | |
4 | *() {}
|
5 | *(Point p) {
|
6 | x = p.x; |
7 | y = p.y; |
8 | } |
9 | *(double *x, double *y) {}
|
10 | |
11 | Point getPoint() {
|
12 | ret new Point(iround(x), iround(y)); |
13 | } |
14 | |
15 | [stdEq] |
16 | |
17 | public S toString() {
|
18 | ret x + ", " + y; |
19 | } |
20 | } |
Began life as a copy of #1005718
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007399 |
| Snippet name: | class DPt - persistable/portable version of Point2D.Double |
| Eternal ID of this version: | #1007399/1 |
| Text MD5: | 7f50bb7566c26e78723bffdd3f56f6fd |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-21 23:11:39 |
| Source code size: | 269 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 892 / 1489 |
| Referenced in: | [show references] |