component hypotv2 "Three-input hypotenuse (Euclidean distance) calculator";
pin_ptr in float in0;
pin_ptr in float in1;
pin_ptr in float in2;
pin_ptr out float out "out = sqrt(in0^2 + in1^2 + in2^2)";
function _;
license "GPL";
;;
#include "rtapi_math.h"
FUNCTION(_)
{
    hal_float_t a = gf(in0), b = gf(in1), c = gf(in2);
    sf(out, rtapi_sqrt(a*a + b*b + c*c));

    return 0;
}
