1 | static Pt ptMul(double d, Pt p) { |
2 | ret new Pt(iround(d*p.x), iround(d*p.y)); |
3 | } |
4 | |
5 | static Pt ptMul(Pt p, double d) { |
6 | ret ptMul(d, p); |
7 | } |
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: | 520 / 578 |
Version history: | 1 change(s) |
Referenced in: | [show references] |