UnsafeNativeMethods.Quaternion.BaryCentric Method |
Language: |
Returns a quaternion in barycentric coordinates.
Visual Basic Public Shared Function BaryCentric( _
ByVal pOut As Quaternion, _
ByVal pQuat1 As Quaternion, _
ByVal pQuat2 As Quaternion, _
ByVal pQuat3 As Quaternion, _
ByVal f As Single, _
ByVal g As Single _
) As QuaternionC# public static Quaternion BaryCentric(
Quaternion pOut,
Quaternion pQuat1,
Quaternion pQuat2,
Quaternion pQuat3,
float f,
float g
);C++ public:
static Quaternion BaryCentric(
Quaternion pOut,
Quaternion pQuat1,
Quaternion pQuat2,
Quaternion pQuat3,
float f,
float g
);JScript public static function BaryCentric(
pOut : Quaternion,
pQuat1 : Quaternion,
pQuat2 : Quaternion,
pQuat3 : Quaternion,
f : float,
g : float
) : Quaternion;
pOut Microsoft.DirectX.Quaternion
Resulting Quaternion structure in barycentric coordinates.pQuat1 Microsoft.DirectX.Quaternion
Source Quaternion structure.pQuat2 Microsoft.DirectX.Quaternion
Source Quaternion structure.pQuat3 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(pQuat1, pQuat2, f + g))
Slerp(pQuat1, pQuat3, f + g)
g/(f + g)
The return value for this method is the same value returned in the pOut parameter. This allows you to use the BaryCentric method as a parameter for another method.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center