Rotate Coordinates

Use the Coordinates > Rotate menu option (XYROTATE GX) to rotate a coordinate system.

Rotate Coordinates dialog options

X channel

Select the X channel.

Script Parameter: XYROTATE.XCHAN

Y channel

Select the Y channel.

Script Parameter: XYROTATE.YCHAN

Rotation angle in deg. CCW

Specify the rotation angle in degrees counter-clockwise.

Script Parameter: XYROTATE.ANGLE

Rotate around point X

Enter the X coordinate of the point around which to rotate the coordinate system.

Script Parameter: XYROTATE.X0

Rotate around point Y 

Enter the Y coordinate of the point around which to rotate the coordinate system.

Script Parameter: XYROTATE.Y0

Application Notes

The rotation expression is:

X = X Cos(q) - Y Sin(q) + X0
Y = X Sin(q) + Y Cos(q) + Y0

The specified X and Y coordinates will be replaced by rotated coordinates.

If the "X" and "Y" channels are specified, the existing "X" and "Y" channels will be copied to channels named "_X" and "_Y" respectively as a backup. This backup is only made if both "_X" and "_Y" do not already exist.

The XYGET GX can be used to restore the backup.

The XYTRNS GX can be used to translate coordinates.