2D Cartesian Coordinate Rotation VI

Owning Palette: Geometry VIs

Requires: Full Development System

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.

Details  

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

 Add to the block diagram  Find on the palette

2D Cartesian Coordinate Rotation (Array)

X specifies the input x-coordinates.
Y specifies the input y-coordinates.
theta specifies the rotation angle in radians.
X Out returns the rotated x-coordinates.
Y Out returns the rotated y-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.

2D Cartesian Coordinate Rotation (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.
theta specifies the rotation angle in radians.
x out returns the rotated x-coordinate.
y out returns the rotated y-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.

2D Cartesian Coordinate Rotation Details

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

.