|
inlineconstexpr |
Callable object computing the spherical coordinates from a quaternion.
This function is the reciprocal of from_spherical
Parameters
q: quaternion
Return value
a tuple containing in this order rho, theta, ph1 ph2: the components of the spherical parametrisation of \(\mathbb{R}^4\) coordinates If the radpi is used theta1, phi1 and phi2 are expressed in \(\pi\) multiples else in radian.