Libraryless. Click here for Pure Java version (2849L/17K).
sbool tooCloseToPointCloud(Pt p, Cl<Pt> points, double allowedDistance) { allowedDistance = sqr(max(0, allowedDistance)); fOr (Pt p2 : points) if (ptSquaredDistance(p, p2) < allowedDistance) true; false; }
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: | 157 / 222 |
Version history: | 1 change(s) |
Referenced in: | [show references] |