Libraryless. Click here for Pure Java version (2849L/17K).
1 | |
2 | sbool tooCloseToPointCloud(Pt p, Cl<Pt> points, double allowedDistance) { |
3 | allowedDistance = sqr(max(0, allowedDistance)); |
4 | |
5 | fOr (Pt p2 : points) |
6 | if (ptSquaredDistance(p, p2) < allowedDistance) |
7 | true; |
8 | false; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031352 |
Snippet name: | tooCloseToPointCloud |
Eternal ID of this version: | #1031352/2 |
Text MD5: | e57237538044208a846858380741c286 |
Transpilation MD5: | 899ea9a636d07216f29731d28f95550c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-07 03:42:55 |
Source code size: | 231 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 159 / 226 |
Version history: | 1 change(s) |
Referenced in: | [show references] |