Vector2.CatmullRom Method (Microsoft.Xna.Framework)
Creates a new Vector2 that contains CatmullRom interpolation of the specified vectors.
- C#
- VB
- F#
public static Vector2 CatmullRom( Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, float amount )
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.
Return Value
Type: Microsoft.Xna.Framework.Vector2The result of CatmullRom interpolation.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web