3D Cartesian Coordinate Rotation (Euler) VI

Owning Palette: Geometry VIs

Requires: Full Development System

Rotates a three-dimensional Cartesian coordinate system in the counterclockwise direction using the Euler angles method and returns the new coordinate of the given point. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.

Details  

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

3D Cartesian Coordinate Rotation (Euler) (Array)

X specifies the input x-coordinates.
Y specifies the input y-coordinates.
Z specifies the input z-coordinates.
Euler Angles specifies the Euler angles in radians.
phi specifies the rotation angle about the first axis in radians.
theta specifies the rotation angle about the second axis in radians.
psi specifies the rotation angle about the third axis in radians.
rotation order specifies the order of the axes to rotate the coordinates around. For example, X-Y-Z specifies the first, second, and third rotations are about the x-, y-, and z-axes respectively. Z-X-Z is the default order.

0X-Y-Z
1X-Z-Y
2Y-X-Z
3Y-Z-X
4Z-X-Y
5Z-Y-X
6X-Y-X
7X-Z-X
8Y-X-Y
9Y-Z-Y
10Z-X-Z
11Z-Y-Z
X Out returns the rotated x-coordinates.
Y Out returns the rotated y-coordinates.
Z Out returns the rotated z-coordinates.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

3D Cartesian Coordinate Rotation (Euler) (Scalar)

x is the real input x-component for the two-element vector.
y is the real input y-component for the two-element vector.
z specifies the input z-coordinate.
Euler Angles specifies the Euler angles in radians.
phi specifies the rotation angle about the first axis in radians.
theta specifies the rotation angle about the second axis in radians.
psi specifies the rotation angle about the third axis in radians.
rotation order specifies the order of the axes to rotate the coordinates around. For example, X-Y-Z specifies the first, second, and third rotations are about the x-, y-, and z-axes respectively. Z-X-Z is the default order.

0X-Y-Z
1X-Z-Y
2Y-X-Z
3Y-Z-X
4Z-X-Y
5Z-Y-X
6X-Y-X
7X-Z-X
8Y-X-Y
9Y-Z-Y
10Z-X-Z
11Z-Y-Z
x out returns the rotated x-coordinate.
y out returns the rotated y-coordinate.
z out returns the rotated z-coordinate.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

3D Cartesian Coordinate Rotation (Euler) Details

According to Euler's rotation theory, you can describe a coordinate rotation with the Euler angles , , and as shown below (use the default rotation order Z-X-Z as an example):

The following three steps describe the rotation:

  1. Rotate the X-, Y-, and Z-axes about the Z-axis by (– < ), resulting in the X'-, Y'-, and Z-axes.
  2. Rotate the X'-, Y'-, and Z-axes about the X'-axis by (0 ), resulting in the X'-, Y''-, and Z'-axes.
  3. Rotate the X'-, Y''-, and Z'-axes about the Z'-axis by (– < ), resulting in the X''-, Y'''-, and Z'-axes.

If you express the rotation of point (x, y, z) in terms of the following three matrices B, C, and D:

; ; ,

the coordinates, (x', y', z'), of the point in the new coordinate frame are

where A = BCD.