Vector2.Lerp(Vector2, Vector2, Single) 메서드

정의

지정된 가중치에 따라 두 벡터 사이의 선형 보간을 수행합니다.

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

매개 변수

value1
Vector2

첫 번째 벡터입니다.

value2
Vector2

두 번째 벡터입니다.

amount
Single

value2의 가중치를 나타내는 0과 1 사이의 값입니다.

반환

보간된 벡터입니다.

설명

이 메서드의 동작이 .NET 5에서 변경되었습니다. 자세한 내용은 Vector2.Lerp 및 Vector4.Lerp에 대한 동작 변경을 참조하세요.

적용 대상