|
inlineconstexpr |
Callable object computing a quaternion from its cylindrical representation.
This function build quaternions in a way similar to the way polar builds complex numbers from a cylindrical representation of an \(\mathbb{R}^2\) element.
from_cylindrical
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.
Parameters
r
, angle
, h1
, h2
Return value
the quaternion value.