Прочетете на английски Редактиране

Споделяне чрез


Vector128.Hypot Method

Definition

Overloads

Hypot(Vector128<Double>, Vector128<Double>)

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

Hypot(Vector128<Single>, Vector128<Single>)

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

Hypot(Vector128<Double>, Vector128<Double>)

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

C#
public static System.Runtime.Intrinsics.Vector128<double> Hypot(System.Runtime.Intrinsics.Vector128<double> x, System.Runtime.Intrinsics.Vector128<double> y);

Parameters

x
Vector128<Double>

The vector to square and add to y.

y
Vector128<Double>

The vector to square and add to x.

Returns

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

Applies to

.NET 10 и .NET 9
Продукт Версии
.NET 9, 10

Hypot(Vector128<Single>, Vector128<Single>)

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

C#
public static System.Runtime.Intrinsics.Vector128<float> Hypot(System.Runtime.Intrinsics.Vector128<float> x, System.Runtime.Intrinsics.Vector128<float> y);

Parameters

x
Vector128<Single>

The vector to square and add to y.

y
Vector128<Single>

The vector to square and add to x.

Returns

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

Applies to

.NET 10 и .NET 9
Продукт Версии
.NET 9, 10