Constructor.
The x component.
The y component.
The z component.
The w component.
ReadonlywThe w component of the quaternion.
ReadonlyxThe x component of the quaternion.
ReadonlyyThe y component of the quaternion.
ReadonlyzThe z component of the quaternion.
The x-axis of the frame represented by the quaternion.
The y-axis of the frame represented by the quaternion.
The z-axis of the frame represented by the quaternion.
StaticidentityThe identity rotation.
Converts the quaternion to a string.
The string representation of the quaternion.
StaticalignStaticangleCalculates the rotation angle of the specified quaternion.
The quaternion.
The angle of rotation for the quaternion.
StaticaxisStaticcomposeStaticcopyStaticdistanceStaticdotStaticequalsStaticfromStaticfromStaticinverseStaticlerpStaticlookStaticlookCreates a unit quaternion that is oriented such that its z-axis points in the direction of the target point from the source point.
The corresponding unit quaternion.
The up direction specifes a hint. The y-axis for the frame represented by the returned unit quaternion may not equal the provided up direction. The target and source points must not be coincident. The direction from the source point to the target point must not be colinear to the up direction vector.
StaticnegateStaticnormCalculates the magnitude of the specified quaternion.
The quaternion.
The magnitude.
StaticnormalizedStaticnormsqCalculates the squared magnitude of the specified quaternion.
The quaternion.
The squared magnitude.
StaticnotStaticslerpStatictoStatictransformStaticxCreates a unit quaternion that rotates the specified angle about the x-axis.
The rotation angle (radians).
The corresponding unit quaternion.
StaticyCreates a unit quaternion that rotates the specified angle about the y-axis.
The rotation angle (radians).
The corresponding unit quaternion.
StaticzCreates a unit quaternion that rotates the specified angle about the z-axis.
The rotation angle (radians).
The corresponding unit quaternion.
Immutable quaternion.
Remarks
Unit quaternions are used to represent rotations. Quaternions are difficult to visualize and generally shouldn't be constructed directly from their constituent components. Instead, you should use the various static construction functions.