Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
hypot

Language Guide / Functions ยท Generated namespace reference

hypot

klang::hypot

Length of a two-dimensional vector.

Returns the Euclidean magnitude of two components. For example, it can turn the real and imaginary parts of a complex sample into a magnitude.

-2.51-1.251.4201.851.252.272.52.69ResultInput x
hypot(x, 1)

Based on std::hypot.

Direct call

const signal magnitude = hypot(x, y);

Signal flow

Here y is a float. Its current value supplies the second operand.

const signal magnitude = x >> hypot(y);