// sensorsstructures.h
typedef struct {
float X;
float Y;
float Z;
float W;
} QUATERNION, *PQUATERNION;
View the official Windows Driver Kit DDI referenceNo description available.
A structure that represents a 4-dimensional vector used for simple 3D rotation operation.
XHorizontal vector.
YVertical vector.
ZVector on the Z-axis.
WThe rotation is done around the axis formed by the vector v= [X, Y, Z] and is of angle ?, and we have:
W=cos(theta/2)
|v|=sin(theta/2)