from_TReturn quaternion orientation object Q from transformation matrix T |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Q = Quaternions.from_T(T, Q_guess);
This function returns a quaternions orientation Q. computed from a transformation matrix T and depending on the initial guess Q_guess. Generally, the transformation matrix T can be gained using a function from the TransformationMatrices package.
to_T. from_T_inv, Frames.from_T, TransformationMatrices.from_T.
T |
Type: Real[3,3] Description: Transformation matrix to transform vector from frame 1 to frame 2 (v2=T*v1) |
---|---|
Q_guess |
Default Value: nullRotation() Type: Orientation Description: Guess value for Q (there are 2 solutions; the one close to Q_guess is used |
Q |
Type: Orientation Description: Quaternions orientation object to rotate frame 1 into frame 2 (Q and -Q have same transformation matrix) |
---|