|
inlineconstexpr |
Callable object computing a quaternion from its semipolar representation.
This function build quaternions in a way similar to the way polar builds complex numbers from a polar representation of an \(\mathbb{R}^2\) element.
from_semipolar first two inputs are the polar coordinates of the first \(\mathbb{C}\) component of the quaternion. The third and fourth inputs are placed into the third and fourth \(\mathbb{R}\) components of the quaternion, respectively.
Defined in header
Parameters
r
, angle,
h1,
h2`Return value
the quaternion value.