Partager via


Curve.ComputeTangent Method (Int32, CurveTangent, CurveTangent)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Computes a specified type of TangentIn and a specified type of TangentOut for a given CurveKey.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

'Declaration
Public Sub ComputeTangent ( _
    keyIndex As Integer, _
    tangentInType As CurveTangent, _
    tangentOutType As CurveTangent _
)
public void ComputeTangent(
    int keyIndex,
    CurveTangent tangentInType,
    CurveTangent tangentOutType
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

keyIndex is not a valid index.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.