Muokkaa

Jaa


Vector4.Lerp Method

Definition

Overloads

Lerp(Vector4, Vector4, Single)

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

Lerp(Vector4, Vector4, Vector4)

Lerp(Vector4, Vector4, Single)

Source:
Vector4.cs
Source:
Vector4.cs
Source:
Vector4.cs

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

public:
 static System::Numerics::Vector4 Lerp(System::Numerics::Vector4 value1, System::Numerics::Vector4 value2, float amount);
public static System.Numerics.Vector4 Lerp (System.Numerics.Vector4 value1, System.Numerics.Vector4 value2, float amount);
static member Lerp : System.Numerics.Vector4 * System.Numerics.Vector4 * single -> System.Numerics.Vector4
Public Shared Function Lerp (value1 As Vector4, value2 As Vector4, amount As Single) As Vector4

Parameters

value1
Vector4

The first vector.

value2
Vector4

The second vector.

amount
Single

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

Returns

The interpolated vector.

Remarks

The behavior of this method changed in .NET 5. For more information, see Behavior change for Vector2.Lerp and Vector4.Lerp.

Applies to

Lerp(Vector4, Vector4, Vector4)

public:
 static System::Numerics::Vector4 Lerp(System::Numerics::Vector4 value1, System::Numerics::Vector4 value2, System::Numerics::Vector4 amount);
public static System.Numerics.Vector4 Lerp (System.Numerics.Vector4 value1, System.Numerics.Vector4 value2, System.Numerics.Vector4 amount);
static member Lerp : System.Numerics.Vector4 * System.Numerics.Vector4 * System.Numerics.Vector4 -> System.Numerics.Vector4
Public Shared Function Lerp (value1 As Vector4, value2 As Vector4, amount As Vector4) As Vector4

Parameters

value1
Vector4
value2
Vector4
amount
Vector4

Returns

Applies to