Edit

Share via


Vector.Hypot Method

Definition

Overloads

Name Description
Hypot(Vector<Double>, Vector<Double>)

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

Hypot(Vector<Single>, Vector<Single>)

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

Hypot(Vector<Double>, Vector<Double>)

Source:
Vector.cs

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

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

Parameters

x
Vector<Double>

The vector to square and add to y.

y
Vector<Double>

The vector to square and add to x.

Returns

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

Applies to

Hypot(Vector<Single>, Vector<Single>)

Source:
Vector.cs

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

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

Parameters

x
Vector<Single>

The vector to square and add to y.

y
Vector<Single>

The vector to square and add to x.

Returns

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

Applies to