Vector3.CatmullRom Method (Vector3, Vector3, Vector3, Vector3, Single)

Performs a Catmull-Rom interpolation using the specified positions.

Syntax

'Declaration
Public Shared Function CatmullRom ( _
         value1 As Vector3, _
         value2 As Vector3, _
         value3 As Vector3, _
         value4 As Vector3, _
         amount As Single _
) As Vector3 
public static Vector3 CatmullRom (
         Vector3 value1,
         Vector3 value2,
         Vector3 value3,
         Vector3 value4,
         float amount
)
public:
static Vector3 CatmullRom(
         Vector3 value1,
         Vector3 value2,
         Vector3 value3,
         Vector3 value4,
         float amount
)

Parameters

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

Return Value

Type: Vector3
A vector that is the result of the Catmull-Rom interpolation.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Vector3 Structure
Vector3 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone