static void limitLineThickness(LineWithColor l, double thickness, int min) { if (thickness == 0) ret; l.width = max(min, min(l.width, iround(ptDistance(l.a, l.b)*thickness))); }
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: | #1015063 |
Snippet name: | limitLineThickness |
Eternal ID of this version: | #1015063/2 |
Text MD5: | 9bcf0f899ba63f44c934fafd71efd3d2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-07 16:51:27 |
Source code size: | 184 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 472 / 482 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |