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

Note This VI does not rotate points within a fixed coordinate system. This VI rotates the coordinate system about the origin.


icon

Inputs/Outputs

  • c1ddbl.png X

    X specifies the input x-coordinates.

  • c1ddbl.png Y

    Y specifies the input y-coordinates.

  • cdbl.png theta

    theta specifies the rotation angle in radians.

  • i1ddbl.png X Out

    X Out returns the rotated x-coordinates.

  • i1ddbl.png Y Out

    Y Out returns the rotated y-coordinates.

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

  • The following illustration shows the rotation of a two-dimensional Cartesian coordinate in the counterclockwise direction by θ (–π < θ ≤ π):

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

    for the rotation matrix

    .