Curve.ComputeTangent Method (Int32, CurveTangent, CurveTangent)
Computes a specified type of TangentIn and a specified type of TangentOut for a given CurveKey.
Syntax
'Declaration
Public Sub ComputeTangent ( _
keyIndex As Integer, _
tangentInType As CurveTangent, _
tangentOutType As CurveTangent _
)
public void ComputeTangent (
int keyIndex,
CurveTangent tangentInType,
CurveTangent tangentOutType
)
public:
void ComputeTangent(
int keyIndex,
CurveTangent tangentInType,
CurveTangent tangentOutType
)
Parameters
- keyIndex
Type: Int32
The index of the CurveKey for which to compute tangents (in the Keys collection of the Curve). - tangentInType
Type: CurveTangent
The type of TangentIn to compute (one of the types specified in the CurveTangent enumeration). - tangentOutType
Type: CurveTangent
The type of TangentOut 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