BUILT-IN MATHEMATICA SYMBOL

# Rotate

Rotate[g, ]
represents 2D graphics primitives or any other objects g rotated counterclockwise by radians about the center of their bounding box.

Rotate[g, , {x, y}]
rotates about the point .

Rotate[g, {u, v}]
rotates around the origin, transforming the 2D or 3D vector u to v.

Rotate[g, , w]
rotates 3D graphics primitives by radians around the 3D vector w anchored at the origin.

Rotate[g, , w, p]
rotates around the 3D vector w anchored at p.

Rotate[g, , {u, v}]
rotates by angle in the plane spanned by 3D vectors u and v.

## Details and OptionsDetails and Options

• or ° specifies an angle in degrees.
• If Rotate appears outside a graphic, the object g in Rotate[g, ] etc. can be any expression.
• You can specify special points such as {Left, Bottom} within the bounding box for g.
• The x position can be specified as Left, Center, or Right; the y position as Bottom, Center, or Top.
• If Rotate appears within a graphic, the coordinates are taken to be in the coordinate system of the graphic.
• If Rotate appears outside a graphic, the coordinates are taken to run from to across the bounding box of the object being rotated.
• Rotate[g, ] is equivalent to Rotate[g, , {Center, Center}].
• For objects specified with scaled coordinates Scaled[{x, y}], Rotate effectively applies its transformation to the corresponding ordinary coordinates.
• If Rotate appears inside a graphic, Normal[expr] if possible replaces all Rotate[gi, ...] constructs by versions of the in which the coordinates have explicitly been transformed.

## ExamplesExamplesopen allclose all

### Basic Examples (3)Basic Examples (3)

Rotate a square by 30°:

 Out[1]=

Rotate a cuboid by 30° around the axis:

 Out[1]=

Rotate text by 45°:

 Out[1]=