Vector2.CatmullRom Method (Microsoft.Xna.Framework)

Creates a new Vector2 that contains CatmullRom interpolation of the specified vectors.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

value1
Type: Microsoft.Xna.Framework.Vector2
The first vector in interpolation.
value2
Type: Microsoft.Xna.Framework.Vector2
The second vector in interpolation.
value3
Type: Microsoft.Xna.Framework.Vector2
The third vector in interpolation.
value4
Type: Microsoft.Xna.Framework.Vector2
The fourth vector in interpolation.
amount
Type: System.Single
Weighting factor.
result
Type: out Microsoft.Xna.Framework.Vector2
The result of CatmullRom interpolation as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web