| hypot | Function (Macro)

math.h, timath.h

float hypot (float x, float y);

Calculates hypotenuse of right triangle.

hypot returns the value z where z^2 = x^2 + y^2 and z >= 0. This is equivalent to the length of the hypotenuse of a right triangle, if the lengths of the two sides are x and y. Or, this is also equivalent to the absolute value of the complex number x + y i.
Note: hypot is implemented as macro which calls fmul (for squaring x and y), fadd and sqrt.

Uses: fadd, fmul, sqrt