Curve.ComputeTangent Method (Int32, CurveTangent)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Computes both the TangentIn and the TangentOut for a CurveKey specified by its index.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)
Syntax
'Declaration
Public Sub ComputeTangent ( _
keyIndex As Integer, _
tangentType As CurveTangent _
)
public void ComputeTangent(
int keyIndex,
CurveTangent tangentType
)
Parameters
- keyIndex
Type: System.Int32
The index of the CurveKey for which to compute tangents (in the Keys collection of the Curve).
- tangentType
Type: Microsoft.Xna.Framework.CurveTangent
The type of tangents to compute (one of the types specified in the CurveTangent enumeration).
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.