.Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.to_Q

Information

Syntax

Q = TransformationMatrices.to_Q(T, Q_guess);

Description

This function returns a quaternion object Q computed from a transformation matrix T and depending on the initial guess Q_guess.

See also

from_Q Frames.to_Q.

Interface

function to_Q
  extends Modelica.Icons.Function;
  input TransformationMatrices.Orientation T "Orientation object to rotate frame 1 into frame 2";
  input Quaternions.Orientation Q_guess = Quaternions.nullRotation() "Guess value for output Q (there are 2 solutions; the one closer to Q_guess is used";
  output Quaternions.Orientation Q "Quaternions orientation object to rotate frame 1 into frame 2";
end to_Q;

Generated at 2020-06-05T21:39:08Z by OpenModelica 1.16.0~dev-442-g2e5bc9f