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)

1  
static double ptDistance(Pt a, Pt b) {
2  
  ret pointDistance(a, b);
3  
}
4  
5  
ifclass DoublePt
6  
static double ptDistance(DoublePt a, DoublePt b) {
7  
  ret pointDistance(a, b);
8  
}
9  
10  
static double ptDistance(DoublePt a, Pt b) {
11  
  ret pointDistance(a.x, a.y, b.x, b.y);
12  
}
13  
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: 320 / 372
Version history: 3 change(s)
Referenced in: [show references]