RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Hypot Function

Calculates the length of the hypotenuse.

Pascal
function Hypot(const X: Extended; const Y: Extended): Extended;
C++
Extended Hypot(const Extended X, const Extended Y);

Hypot returns the length of the hypotenuse of a right triangle. Specify the lengths of the sides adjacent to the right angle in X and Y. Hypot uses the formula 

Sqrt(X**2 + Y**2) 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!