HYPOT(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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