R3m/framework Function reference math.hypot

{math.hypot(Float $x, FLoat $y)}

{math.hypot()} 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.
This is equivalent to {math.sqrt(x*x + y*y)}.

Returns the calculated length of the hypotenuse as a float.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com