Vector4.Lerp(Vector4, Vector4, Single) Método

Definição

Executa uma interpolação linear entre dois vetores com base na importância determinada.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

Parâmetros

value1
Vector4

O primeiro vetor.The first vector.

value2
Vector4

O segundo vetor.The second vector.

amount
Single

Um valor entre 0 e 1 que indica o peso de value2.A value between 0 and 1 that indicates the weight of value2.

Retornos

Vector4

O vetor interpolado.The interpolated vector.

Comentários

O comportamento desse método mudou no .NET 5,0.The behavior of this method changed in .NET 5.0. Para obter mais informações, consulte comportamento alterar para vector2. Lerp e Vector4. Lerp.For more information, see Behavior change for Vector2.Lerp and Vector4.Lerp.

Aplica-se a