functionaxisRotation

Return rotation object to rotate around one frame axis

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

Information

Syntax

T = TransformationMatrices.axisRotation(axis, angle);

Description

This function returns transformation matrix T that describes the orientation to rotate along unit axis axis from frame 1 into frame 2 with angle angle. For example, TransformationMatrices.axisRotation(2, phi) returns the same orientation object as with the call TransformationMatrices.planarRotation({0,1,0}, phi)

See also

planarRotation, Frames.axisRotation.

Inputs

TypeNameDefaultDescription
IntegeraxisRotate around 'axis' of frame 1
SI.AngleangleRotation angle to rotate frame 1 into frame 2 along 'axis' of frame 1

Outputs

TypeNameDefaultDescription
TransformationMatrices.OrientationTOrientation object to rotate frame 1 into frame 2