hypot
Description:
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.
Note:
Remember to link the math library: valac -X -lm ...
The GLib.Math.hypot function returns sqrt(x*x + y*y)
.
Parameters:
x |
A numeric value. |
y |
A numeric value. |
Namespace: GLib.Math
Package: glib-2.0