Matrix.Lerp Method (Microsoft.Xna.Framework)

Creates a new Matrix that contains linear interpolation of the values in specified matrixes.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public static Matrix Lerp(
	Matrix matrix1, 
	Matrix matrix2, 
	float amount

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Matrix
The first Matrix.
Type: Microsoft.Xna.Framework.Matrix
The second Vector2.
Type: System.Single
Weighting value(between 0.0 and 1.0).

Return Value

Type: Microsoft.Xna.Framework.Matrix
>The result of linear interpolation of the specified matrixes.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop