[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.Lerp

Lerp Method

Lerp(Matrix4x4, Matrix4x4, float)

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

Declaration
public static Matrix4x4 Lerp(Matrix4x4 matrix1, Matrix4x4 matrix2, float amount)
Public Shared Function Lerp(matrix1 As Matrix4x4, matrix2 As Matrix4x4, amount As Single) As Matrix4x4
Parameters
Type Name Description
Matrix4x4 matrix1

The first matrix.

Matrix4x4 matrix2

The second matrix.

float amount

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

Returns
Type Description
Matrix4x4

The interpolated matrix.