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

7
LINES

< > BotCompany Repo | #1006796 // ptMul

JavaX fragment (include)

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: 519 / 577
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)