Quaternion Quaternion Quaternion Quaternion Struct
Definition
Describes a quaternion, which is an abstract representation of an orientation in space that is based on complex numbers.
public : struct Quaternionpublic struct QuaternionPublic Structure Quaternion// You can use this struct in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
The identity quaternion is (0, 0, 0, 1), where the quaternion values are listed in the order (x, y, z, w).
These quaternion values do not directly indicate an angle of rotation and an axis.
For more information about quaternions, see Quaternion, Quaternions and spatial rotation, and Introducing the Quaternions.
Fields
W W W W
The w component of the quaternion, which is the real number part of the quaternion.
public : field float Wpublic field float WPublic Field W// You can use this field in JavaScript.
X X X X
The x component of the quaternion, which is the coefficient of the i unit vector in the quaternion.
public : field float Xpublic field float XPublic Field X// You can use this field in JavaScript.
Y Y Y Y
The y component of the quaternion, which is the coefficient of the j unit vector in the quaternion.
public : field float Ypublic field float YPublic Field Y// You can use this field in JavaScript.