แก้ไข

แชร์ผ่าน


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.

public:
 static System::Runtime::Intrinsics::Vector128<double> Hypot(System::Runtime::Intrinsics::Vector128<double> x, System::Runtime::Intrinsics::Vector128<double> y);
public static System.Runtime.Intrinsics.Vector128<double> Hypot (System.Runtime.Intrinsics.Vector128<double> x, System.Runtime.Intrinsics.Vector128<double> y);
static member Hypot : System.Runtime.Intrinsics.Vector128<double> * System.Runtime.Intrinsics.Vector128<double> -> System.Runtime.Intrinsics.Vector128<double>
Public Function Hypot (x As Vector128(Of Double), y As Vector128(Of Double)) As Vector128(Of Double)

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

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

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

public:
 static System::Runtime::Intrinsics::Vector128<float> Hypot(System::Runtime::Intrinsics::Vector128<float> x, System::Runtime::Intrinsics::Vector128<float> y);
public static System.Runtime.Intrinsics.Vector128<float> Hypot (System.Runtime.Intrinsics.Vector128<float> x, System.Runtime.Intrinsics.Vector128<float> y);
static member Hypot : System.Runtime.Intrinsics.Vector128<single> * System.Runtime.Intrinsics.Vector128<single> -> System.Runtime.Intrinsics.Vector128<single>
Public Function Hypot (x As Vector128(Of Single), y As Vector128(Of Single)) As Vector128(Of Single)

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