functionrelativeRotation

Return relative orientation object

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

Information

Syntax

R_rel = Frames.relativeRotation(R1,R2);

Description

The function call Frames.relativeRotation(R1,R2) returns orientation object R_rel that describes the orientation to rotate frame 1 to frame 2 from the orientation object R1 that describes the orientation to rotate from frame 0 to frame 1 and from the orientation object R2 that describes the orientation to rotate from frame 0 to frame 2.

See also

TransformationMatrices.relativeRotation, Quaternions.relativeRotation.

Inputs

TypeNameDefaultDescription
OrientationR1Orientation object to rotate frame 0 into frame 1
OrientationR2Orientation object to rotate frame 0 into frame 2

Outputs

TypeNameDefaultDescription
OrientationR_relOrientation object to rotate frame 1 into frame 2