Method
NumCosmoMathQuaternionset_from_data
Declaration [src]
void
ncm_quaternion_set_from_data (
NcmQuaternion* q,
gdouble x,
gdouble y,
gdouble z,
gdouble theta
)
Description [src]
Sets the components of a NcmQuaternion.
The components are the components of a three-dimensional vector and the angle
of rotation, the three-dimensional vector is normalized. The final
form of the quaternion is:
$$q = \cos(\theta/2) + \sin(\theta/2) \hat{v}.$$.