[−][src]Function directx_math::XMQuaternionSquadV
pub fn XMQuaternionSquadV(
Q0: FXMVECTOR,
Q1: FXMVECTOR,
Q2: FXMVECTOR,
Q3: GXMVECTOR,
T: XMVECTOR
) -> FXMVECTOR
Interpolates between four unit quaternions, using spherical quadrangle interpolation.
Parameters
Q0
First unit quaternion.
Q1
Second unit quaternion.
Q2
Third unit quaternion.
Q3
Fourth unit quaternion.
T
Interpolation control factor. All components of this vector must be the same.
Return value
Returns the interpolated quaternion. If Q0, Q1, Q2, and Q3 are not unit quaternions, the resulting interpolation is undefined.
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 XMQuaternionSquad
except that T
is supplied using a 4D vector instead
of a float value.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMQuaternionSquadV
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/bb281657(v=vs.85)