MathHelper.CatmullRom Method (Microsoft.Xna.Framework)

Performs a Catmull-Rom interpolation using the specified positions.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static float CatmullRom(
	float value1, 
	float value2, 
	float value3, 
	float value4, 
	float amount
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

value1
Type: System.Single
The first position in the interpolation.
value2
Type: System.Single
The second position in the interpolation.
value3
Type: System.Single
The third position in the interpolation.
value4
Type: System.Single
The fourth position in the interpolation.
amount
Type: System.Single
Weighting factor.

Return Value

Type: System.Single
A position that is the result of the Catmull-Rom interpolation.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web