Function lupnt::DCMToQuatCoeff

Function Documentation

Vec4 lupnt::DCMToQuatCoeff(Mat3 dcm)

Convert a direction cosine matrix to a quaternion.

Parameters:

dcm – direction cosine matrix (3x3)

Returns:

Vec4 quaternion [q0, q1, q2, q3] = [scalar, vector]