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

13
LINES

< > BotCompany Repo | #1015064 // ptDistance - synonym of pointDistance - distance between two points (Pt)

JavaX fragment (include)

static double ptDistance(Pt a, Pt b) {
  ret pointDistance(a, b);
}

ifclass DoublePt
static double ptDistance(DoublePt a, DoublePt b) {
  ret pointDistance(a, b);
}

static double ptDistance(DoublePt a, Pt b) {
  ret pointDistance(a.x, a.y, b.x, b.y);
}
endif

Author comment

Began life as a copy of #1005804

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: #1015064
Snippet name: ptDistance - synonym of pointDistance - distance between two points (Pt)
Eternal ID of this version: #1015064/4
Text MD5: 8aa7ebd744aebdee209fd517f034ab37
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-15 03:42:35
Source code size: 272 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 410 / 460
Version history: 3 change(s)
Referenced in: [show references]