Returns the magnitude of two-dimensional vector from the origin to a point with coordinates X, Y.
As shown in the preceding figure, the hypot function returns the radius of a circle whose center is at one end of a right triangle’s hypotenuse and perimeter is at the other end of the hypotenuse.
The following equation gives the magnitude of the vector:
X is the X coordinate of the point.
Y is the Y coordinate of the point.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License