![]() |
![]() |
![]() |
Quaternion.BaryCentric Method |
Language: |
Returns a quaternion in barycentric coordinates.
Visual Basic .NET Public Shared Function BaryCentric( _
ByVal q1 As Quaternion, _
ByVal q2 As Quaternion, _
ByVal q3 As Quaternion, _
ByVal f As Single, _
ByVal g As Single _
) As QuaternionC# public static Quaternion BaryCentric(
Quaternion q1,
Quaternion q2,
Quaternion q3,
float f,
float g
);Managed C++ public: static Quaternion BaryCentric(
Quaternion q1,
Quaternion q2,
Quaternion q3,
float f,
float g
);JScript .NET public static function BaryCentric(
q1 : Quaternion,
q2 : Quaternion,
q3 : Quaternion,
f : float,
g : float
) : Quaternion;
q1 Microsoft.DirectX.Quaternion. Source Quaternion structure. q2 Microsoft.DirectX.Quaternion. Source Quaternion structure. q3 Microsoft.DirectX.Quaternion. Source Quaternion structure. f System.Single. Weighting factor. See Remarks. g System.Single. Weighting factor. See Remarks.
Microsoft.DirectX.Quaternion . Resulting Quaternion structure in barycentric coordinates.
To compute the barycentric coordinates, the BaryCentric method implements the following series of spherical linear interpolation operations.
Slerp(Slerp(q1, q2, f + g))
Slerp(q1, q3, f + g)
g/(f + g)
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center