# Rotate

> Provides rotation information for visual elements that rotates around the TransformOrigin. Positive values represent clockwise rotation.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<Rotate>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct Rotate : IEquatable<Rotate>
```

## Constructors

| Constructor                                                                                                                                               | Description                                                                                                                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Rotate(UnityEngine.Quaternion)](/engine/6000.5/script-reference/unityengine/uielements/rotate/ctor.md#rotate\(quaternion\))                              | Create a Rotate struct that corresponds to a rotation specified by the provided [Quaternion](/engine/6000.5/script-reference/unityengine/quaternion.md).                  |
| [Rotate(UnityEngine.UIElements.Angle)](/engine/6000.5/script-reference/unityengine/uielements/rotate/ctor.md#rotate\(angle\))                             | Create a Rotate struct that correspond to a rotation around the z axis by the provided [Angle](/engine/6000.5/script-reference/unityengine/uielements/angle.md).          |
| [Rotate(UnityEngine.UIElements.Angle,UnityEngine.Vector3)](/engine/6000.5/script-reference/unityengine/uielements/rotate/ctor.md#rotate\(angle-vector3\)) | Create a Rotate struct that corresponds to a rotation around the specified axis by the provided [Angle](/engine/6000.5/script-reference/unityengine/uielements/angle.md). |

## Properties

| Property                                                                        | Description                                                                                                                              |
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| [angle](/engine/6000.5/script-reference/unityengine/uielements/rotate/angle.md) | The angle applied by the rotation. Positive values represent clockwise rotation and negative values represent counterclockwise rotation. |

## Static Methods

| Method                                                                        | Description                                                                                                           |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| [None](/engine/6000.5/script-reference/unityengine/uielements/rotate/none.md) | Return a value of [Rotate](/engine/6000.5/script-reference/unityengine/uielements/rotate.md) that applies no rotation |
