Partilhar via


Curve.ComputeTangent Method (Int32, CurveTangent, CurveTangent)

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

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

Syntax

public void ComputeTangent (
         int keyIndex,
         CurveTangent tangentInType,
         CurveTangent tangentOutType
)

Parameters

  • keyIndex
    The index of the CurveKey for which to compute tangents (in the Keys collection of the Curve).
  • tangentInType
    The type of TangentIn to compute (one of the types specified in the CurveTangent enumeration).
  • tangentOutType
    The type of TangentOut 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