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.1082)
  • C#
  • VB
  • F#
public static void Lerp(
	Matrix matrix1, 
	Matrix matrix2, 
	float amount, 
	out Matrix result
)

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).
result
Type: out Microsoft.Xna.Framework.Matrix
The result of linear interpolation of the specified matrixes as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web