Vector2.Lerp(Vector2, Vector2, Single) Yöntem

Tanım

Verilen ağırlık temelinde iki vektör arasında doğrusal ilişkilendirme gerçekleştirir.

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

Parametreler

value1
Vector2

İlk vektör.

value2
Vector2

İkinci vektör.

amount
Single

ağırlığını gösteren 0 ile 1 arasında bir değer.value2

Döndürülenler

İlişkilendirilmiş vektör.

Açıklamalar

Bu yöntemin davranışı .NET 5'te değişti. Daha fazla bilgi için bkz . Vector2.Lerp ve Vector4.Lerp için davranış değişikliği.

Şunlara uygulanır