Curve.ComputeTangent Method (Int32, CurveTangent)

Computes both the TangentIn and the TangentOut for a CurveKey specified by its index.

Syntax

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

Parameters

  • keyIndex
    Type: Int32
    The index of the CurveKey for which to compute tangents (in the Keys collection of the Curve).
  • tangentType
    Type: CurveTangent
    The type of tangents to compute (one of the types specified in the CurveTangent enumeration).

Exceptions

Exception type Condition
ArgumentOutOfRangeException keyIndex is not a valid index.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Curve Class
Curve Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone