Matrix.Lerp Method (Matrix, Matrix, Single)
Linearly interpolates between the corresponding values of two matrices.
Syntax
'Declaration
Public Shared Function Lerp ( _
matrix1 As Matrix, _
matrix2 As Matrix, _
amount As Single _
) As Matrix
public static Matrix Lerp (
Matrix matrix1,
Matrix matrix2,
float amount
)
public:
static Matrix Lerp(
Matrix matrix1,
Matrix matrix2,
float amount
)
Parameters
- matrix1
Type: Matrix
Source matrix. - matrix2
Type: Matrix
Source matrix. - amount
Type: Single
Interpolation value.
Return Value
Type: Matrix
Resulting matrix.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Matrix Structure
Matrix Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone