Bewerken

Delen via


Vector128.Lerp Method

Definition

Overloads

Lerp(Vector128<Double>, Vector128<Double>, Vector128<Double>)

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

Lerp(Vector128<Single>, Vector128<Single>, Vector128<Single>)

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

Lerp(Vector128<Double>, Vector128<Double>, Vector128<Double>)

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

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

Parameters

x
Vector128<Double>

The first vector.

y
Vector128<Double>

The second vector.

amount
Vector128<Double>

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

Returns

The interpolated vector.

Applies to

Lerp(Vector128<Single>, Vector128<Single>, Vector128<Single>)

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

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

Parameters

x
Vector128<Single>

The first vector.

y
Vector128<Single>

The second vector.

amount
Vector128<Single>

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

Returns

The interpolated vector.

Applies to