Editare

Partajați prin


Single.Hypot(Single, Single) Method

Definition

Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle.

public:
 static float Hypot(float x, float y) = System::Numerics::IRootFunctions<float>::Hypot;
public static float Hypot (float x, float y);
static member Hypot : single * single -> single
Public Shared Function Hypot (x As Single, y As Single) As Single

Parameters

x
Single

The value to square and add to y.

y
Single

The value to square and add to x.

Returns

The square root of x-squared plus y-squared.

Implements

Applies to