Returns the length of the hypotenuse of a right-angle triangle with sides of length x
and y
, or the distance of
the point (x,y)
from the origin.
Remember to link the math library: valac -X -lm ...
The GLib.Math.hypot function returns sqrt(x*x + y*y)
.
x |
A numeric value. |
y |
A numeric value. |