HYPOT(9)
β¨ HYPOT(9) β¨
okay so bestie, we're in the HAL Component section of the manual, section 9, and today's main character is hypot. it's giving math nerd but make it real-time. let's get into it π
πΈ NAME πΈ
hypot β a three-input hypotenuse (Euclidean distance) calculator. yes bestie, THREE inputs. Pythagoras could never π
β¨ SYNOPSIS β¨
loadrt hypot [count=N|names=name1[,name2...]]
that's literally it. you load the thing with loadrt, and you tell it either how many copies you want or what to name them. or neither, and it just does its thing π«Ά
π FUNCTIONS π
hypot.N(requires a floating-point thread)
β οΈ heads up bestie β this function needs a floating-point thread. do not try to run it on an integer thread, it will simply not vibe. π
π¦ PINS π¦
so the pins. N here is the instance number, so if you loaded like four of these you got hypot.0, hypot.1, hypot.2, hypot.3 each with their own set. iconic.
hypot.N.in0β float, in. first input, feeding the math πhypot.N.in1β float, in. second input, also feeding the math πΈhypot.N.in2β float, in. third input, still feeding the math π§hypot.N.outβ float, out. this is where the answer lands, and it is literally:
out = sqrt(in0^2 + in1^2 + in2^2)
like. it squares all three, adds them up, and square-roots the whole thing. that's the Euclidean distance. periodt. π
π AUTHOR π
Jeff Epler β the icon who wrote this. we stan. π«Ά
π LICENSE π
GPL β free as in freedom, bestie. share it, remix it, just keep it open. no cap. β¨
and that's the whole page fr fr. it's from the LinuxCNC Documentation, dated 2026-03-17 β shoutout to the docs team, they ate and left no crumbs πππ
π¦ where this page comes from
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms