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


icon

Inputs/Outputs

  • cdbl.png x

    x is the real input x-component for the two-element vector.

  • cdbl.png y

    y is the real input y-component for the two-element vector.

  • cdbl.png z

    z specifies the input z-coordinate.

  • c2ddbl.png Rotation Matrix

    Rotation Matrix specifies the 3-by-3 direction cosine matrix. If rotation matrix type is Direction Cosines, each element in Rotation Matrix must be in the range of [-1, 1].

  • cu16.png rotation matrix type

    rotation matrix type determines whether the Rotation Matrix contains the direction angles or the direction cosines.

    0Direction Angles (default)—Indicates that the Rotation Matrix contains the direction angles, or the angles between the x-, y-, and z-axes and the line segments from the origin to the input coordinates.
    1Direction Cosines—Indicates that the Rotation Matrix contains the direction cosines, or the cosines of the direction angles.
  • idbl.png x out

    x out returns the rotated x-coordinate.

  • idbl.png y out

    y out returns the rotated y-coordinate.

  • idbl.png z out

    z out returns the rotated z-coordinate.

  • ii32.png error

    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.

  • For a point P, α, β, and γ are the direction angles of vector OP, as shown in the following illustration:

    The cosines of the direction angles are direction cosines.

    Before the rotation, the coordinate of point P is (x, y, z). After the rotation, the coordinate of point P is (x', y', z'), where

    A is the Rotation Matrix defined by:

    α1, β1, and γ1 are the direction angles of the X'-axis to the X-, Y-, and Z-axes. α2, β2, and γ2 are the direction angles of the Y'-axis to the X-, Y-, and Z-axes. α3, β3, and γ3 are the direction angles of the Z'-axis to the X-, Y-, and Z-axes.