functionrelativeRotation

Return relative quaternions orientation object

Extends from Modelica.Icons.Function (Icon for functions).

Information

Syntax

Q_rel = Quaternions.relativeRotation(Q1, Q2);

Description

This function returns quaternions orientation Q_rel that describes the orientation to rotate frame 1 to frame 2 from the quaternions orientation Q1 that describes the orientation to rotate from frame 0 to frame 1 and from the quaternions orientation Q2 that describes the orientation to rotate from frame 0 to frame 2.

See also

Frames.relativeRotation, TransformationMatrices.relativeRotation.

Inputs

TypeNameDefaultDescription
Quaternions.OrientationQ1Quaternions orientation object to rotate frame 0 into frame 1
Quaternions.OrientationQ2Quaternions orientation object to rotate frame 0 into frame 2

Outputs

TypeNameDefaultDescription
Quaternions.OrientationQ_relQuaternions orientation object to rotate frame 1 into frame 2