2D Cartesian Coordinate Rotation (Array) VI
- Updated2025-07-30
- 2 minute(s) read
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.

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