Quaternion
While mathematical quaternions are more involved than this, the unit quaternions
(or rotational quaternions
) used to represent rotation while using WebGL
or WebXR
, for example, are represented using the same syntax as a 3D point. As such, the type
DOMPoint
(or
DOMPointReadOnly
) is used to store quaternions.
See also
- Quaternions and spatial rotation on Wikipedia
- Quaternion on Wikipedia
-
XRRigidTransform.orientation
in the WebXR Device API reference