Bewerken

Share via


Vector.Lerp Method

Definition

Overloads

Lerp(Vector<Double>, Vector<Double>, Vector<Double>)

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

Lerp(Vector<Single>, Vector<Single>, Vector<Single>)

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

Lerp(Vector<Double>, Vector<Double>, Vector<Double>)

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

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

Parameters

x
Vector<Double>

The first vector.

y
Vector<Double>

The second vector.

amount
Vector<Double>

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

Returns

The interpolated vector.

Applies to

Lerp(Vector<Single>, Vector<Single>, Vector<Single>)

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

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

Parameters

x
Vector<Single>

The first vector.

y
Vector<Single>

The second vector.

amount
Vector<Single>

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

Returns

The interpolated vector.

Applies to