|
inlineconstexpr |
Callable object computing a quaternion from its cylindrospherical representation.
cylindrospherical is specific to quaternions. It is often interesting to consider \(\mathbb{H}\) as the cartesian product of \(\mathbb{R}\) by \(\mathbb{R}^3\) (the quaternionic multiplication has then a special form, as given here). This function therefore builds a quaternion from this representation, with the \(\mathbb{R}^3\) component given in usual \(\mathbb{R}^3\) spherical coordinates.
Parameters
t
, radius
: the modulilongitude
, latitude
: angles in radianReturn value
the quaternion value
cylindrospherical is specific to quaternions. It is often interesting to consider \(\mathbb{H}\) as the cartesian product of \(\mathbb{R}\) by \(\mathbb{R}^3\) (the quaternionic multiplication has then a special form, as given here). This function therefore builds a quaternion from this representation, with the \(\mathbb{R}^3\) component given in usual \(\mathbb{R}^3\) spherical coordinates.
Parameters
t
, radius
: the modulilongitude
, latitude
: angles in radianReturn value
the quaternion value