Vector256.Hypot Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Hypot(Vector256<Double>, Vector256<Double>)

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

Hypot(Vector256<Single>, Vector256<Single>)

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

Hypot(Vector256<Double>, Vector256<Double>)

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

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

Parameters

x
Vector256<Double>

The vector to square and add to y.

y
Vector256<Double>

The vector to square and add to x.

Returns

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

Applies to

.NET 9
Proizvod Verzije
.NET 9

Hypot(Vector256<Single>, Vector256<Single>)

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

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

Parameters

x
Vector256<Single>

The vector to square and add to y.

y
Vector256<Single>

The vector to square and add to x.

Returns

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

Applies to

.NET 9
Proizvod Verzije
.NET 9