# 2D Cartesian Coordinate Rotation VI

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info

Owning Palette: Geometry VIs

Requires: Full Development System

Rotates a two-dimensional Cartesian coordinate in the counterclockwise direction. 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.

 Select an instance 2D Cartesian Coordinate Rotation (Array)2D Cartesian Coordinate Rotation (Scalar)

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

.

Your Feedback!  Poor  |  Excellent    Yes No
 Document Quality?