Curve.ComputeTangent Method (Int32, CurveTangent)

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)

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).

ExceptionCondition
ArgumentOutOfRangeException

keyIndex is not a valid index.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show: