[−][src]Function directx_math::XMQuaternionBaryCentricV
pub fn XMQuaternionBaryCentricV(
Q0: FXMVECTOR,
Q1: FXMVECTOR,
Q2: FXMVECTOR,
F: FXMVECTOR,
G: FXMVECTOR
) -> XMVECTOR
Returns a point in barycentric coordinates, using the specified quaternions.
Parameters
Q0
First quaternion in the triangle.
Q1
Second quaternion in the triangle.
Q2
Third quaternion in the triangle.
F
Weighting factor. All components of this vector must be the same.
G
Weighting factor. All components of this vector must be the same.
Return value
Returns a quaternion in barycentric coordinates.
Remarks
The DirectXMath quaternion functions use an XMVECTOR 4-vector to represent quaternions, where
the X
, Y
, and Z
components are the vector part and the W
component is the scalar part.
This function is identical to XMQuaternionBaryCentric
except that F
and G
are supplied using
a 4D vector instead of a float value.