Partilhar via


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 (in microsoft.xna.framework.dll)

Syntax

public void ComputeTangent (
         int keyIndex,
         CurveTangent tangentType
)

Parameters

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

See Also

Reference

Curve Class
Curve Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista