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 3.8.0.398)
  • 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.

Parameters

matrix1
Type: Microsoft.Xna.Framework.Matrix
The first Matrix.
matrix2
Type: Microsoft.Xna.Framework.Matrix
The second Vector2.
amount
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
    
 Web