Edit

Share via


Vector512.Lerp Method

Definition

Overloads

Lerp(Vector512<Double>, Vector512<Double>, Vector512<Double>)

Performs a linear interpolation between two vectors based on the given weighting.

Lerp(Vector512<Single>, Vector512<Single>, Vector512<Single>)

Performs a linear interpolation between two vectors based on the given weighting.

Lerp(Vector512<Double>, Vector512<Double>, Vector512<Double>)

Performs a linear interpolation between two vectors based on the given weighting.

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

Parameters

x
Vector512<Double>

The first vector.

y
Vector512<Double>

The second vector.

amount
Vector512<Double>

A value between 0 and 1 that indicates the weight of y.

Returns

The interpolated vector.

Applies to

Lerp(Vector512<Single>, Vector512<Single>, Vector512<Single>)

Performs a linear interpolation between two vectors based on the given weighting.

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

Parameters

x
Vector512<Single>

The first vector.

y
Vector512<Single>

The second vector.

amount
Vector512<Single>

A value between 0 and 1 that indicates the weight of y.

Returns

The interpolated vector.

Applies to