What is Nostr?
FozzTexx /
npub1s4s…wm4u
2023-09-25 04:04:29
in reply to nevent1q…zzav

FozzTexx on Nostr: Wow, I did it! function dist_calc(pt, idx) = concat([idx, sqrt(abs(pt[IDX_X] - ...

Wow, I did it!

function dist_calc(pt, idx) = concat([idx, sqrt(abs(pt[IDX_X] - pcb_mounts[idx][IDX_X]) ^ 2 + abs(pt[IDX_Y] - pcb_mounts[idx][IDX_Y]) ^ 2)], idx < len(pcb_mounts)-1 ? dist_calc(pt, idx+1) : []);

This is more difficult than programming in assembly. Makes me feel like I'm programming in some ancient obscure language used in the ‘70s.
Author Public Key
npub1s4svdhwmwpggvfs0tzy05u0knwdqy9eyztf6ujg3ehxq68frt55qdvwm4u