Method

NumCosmoMathQuaternionrotate

Declaration [src]

void
ncm_quaternion_rotate (
  NcmQuaternion* q,
  NcmTriVec* v
)

Description [src]

Computes the rotation of a NcmTriVec by a NcmQuaternion. The rotation is done by the formula $v’ = q v q^\dagger$.

Parameters

v

Type: NcmTriVec

A NcmTriVec.

The data is owned by the caller of the method.