LabVIEW 2016 Help | |

LabVIEW 2017 Help | |

LabVIEW 2018 Help | |

LabVIEW 2019 Help | |

LabVIEW 2020 Help |

**Owning Palette:** Geometry VIs

**Requires:** Full Development System

Rotates a three-dimensional Cartesian coordinate in the counterclockwise direction using the Euler angles method. Wire data to the **X** input to determine the polymorphic instance to use or manually select the instance.

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

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.
| |||||||||||||||||||||||||

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.
| |||||||||||||||||||||||||

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. |

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.
| |||||||||||||||||||||||||

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.
| |||||||||||||||||||||||||

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. |

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:

- Rotate the X-, Y-, and Z-axes about the Z-axis by (– < ), resulting in the X'-, Y'-, and Z-axes.
- Rotate the X'-, Y'-, and Z-axes about the X'-axis by (0 ), resulting in the X'-, Y''-, and Z'-axes.
- 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*.

Helpful

Not Helpful