System.Math.Hypot
Delphi
function Hypot(const X, Y: Single): Single;
function Hypot(const X, Y: Double): Double;
function Hypot(const X, Y: Extended): Extended;
function Hypot(const X, Y, Z: Extended): Extended;
function Hypot(const X, Y, Z: Double): Double;
function Hypot(const X, Y, Z: Single): Single;
C++
extern DELPHI_PACKAGE float __fastcall Hypot(const float X, const float Y)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Calcule la longueur de l'hypoténuse.
Hypot renvoie la longueur de l'hypoténuse d'un triangle droit. Spécifiez la longueur des côtés adjacents à l'angle droit dans X et Y. Hypot utilise la formule
Sqrt(X**2 + Y**2)