Matrix4x4.Lerp(Matrix4x4, Matrix4x4, Single) 方法
定义
基于指定第二个矩阵的权重的值,从一个矩阵向第二个矩阵执行线性内插。Performs a linear interpolation from one matrix to a second matrix based on a value that specifies the weighting of the second matrix.
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
参数
- matrix1
- Matrix4x4
第一个矩阵。The first matrix.
- matrix2
- Matrix4x4
第二个矩阵。The second matrix.
- amount
- Single
matrix2 的相对权重。The relative weighting of matrix2.
返回
内插的矩阵。The interpolated matrix.