MathHelper.Hermite Method

Performs a Hermite spline interpolation.

Syntax

'Declaration
Public Shared Function Hermite ( _
         value1 As Single, _
         tangent1 As Single, _
         value2 As Single, _
         tangent2 As Single, _
         amount As Single _
) As Single 
public static float Hermite (
         float value1,
         float tangent1,
         float value2,
         float tangent2,
         float amount
)
public:
static float Hermite(
         float value1,
         float tangent1,
         float value2,
         float tangent2,
         float amount
)

Parameters

  • value1
    Type: Single
    Source position.
  • tangent1
    Type: Single
    Source tangent.
  • value2
    Type: Single
    Source position.
  • tangent2
    Type: Single
    Source tangent.
  • amount
    Type: Single
    Weighting factor.

Return Value

Type: Single
The result of the Hermite spline interpolation.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

MathHelper Class
MathHelper Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone