Matrix4x4.Lerp(Matrix4x4, Matrix4x4, Single) Methode

Definitie

Hiermee wordt een lineaire interpolatie uitgevoerd van één matrix naar een tweede matrix op basis van een waarde die de weging van de tweede matrix aangeeft.

public:
 static System::Numerics::Matrix4x4 Lerp(System::Numerics::Matrix4x4 matrix1, System::Numerics::Matrix4x4 matrix2, float amount);
public static System.Numerics.Matrix4x4 Lerp(System.Numerics.Matrix4x4 matrix1, System.Numerics.Matrix4x4 matrix2, float amount);
static member Lerp : System.Numerics.Matrix4x4 * System.Numerics.Matrix4x4 * single -> System.Numerics.Matrix4x4
Public Shared Function Lerp (matrix1 As Matrix4x4, matrix2 As Matrix4x4, amount As Single) As Matrix4x4

Parameters

matrix1
Matrix4x4

De eerste matrix.

matrix2
Matrix4x4

De tweede matrix.

amount
Single

De relatieve weging van matrix2.

Retouren

De geïnterpoleerde matrix.

Van toepassing op