axisRotation

Return rotation object to rotate around one frame axis

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Syntax

T = axisRotation(axis, angle)

Inputs (2)

axis

Type: Integer

Description: Rotate around 'axis' of frame 1

angle

Type: Angle (rad)

Description: Rotation angle to rotate frame 1 into frame 2 along 'axis' of frame 1

Outputs (1)

T

Type: Orientation

Description: Orientation object to rotate frame 1 into frame 2