static Pt ptMul(double d, Pt p) { ret new Pt(iround(d*p.x), iround(d*p.y)); } static Pt ptMul(Pt p, double d) { ret ptMul(d, p); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006796 |
| Snippet name: | ptMul |
| Eternal ID of this version: | #1006796/2 |
| Text MD5: | e47eab6eb1267bd084643187d2d1cf9a |
| Author: | stefan |
| Category: | javax / maths |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-22 18:08:29 |
| Source code size: | 137 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 765 / 830 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |