Compute Quaternions from a transformation matrix
function T2quat extends Modelica.Icons.Function; input Real T[3, 3] "transformation matrix"; output Real q[4] "Quaternions of T (q and -q have same T)"; end T2quat;